:root {
  --page-inline-padding: 1.5rem;
}

body {
  font-family: system-ui, sans-serif;
}

header, main {
  padding-inline: var(--page-inline-padding);
}

header {
  /*padding-block: 1rem;*/
  position: relative;
}

/* Fixed page-title-length-independent position for the 3-page nav pills. */
.edops-page-pills-wrap {
  position: absolute;
  left: 500px;
  top: 50%;
  transform: translateY(-50%);
}

pre {
  background: #f4f4f4;
  padding: 1rem;
  max-height: 400px;
  overflow: auto;
}

.badge {
  font-size: 0.85rem !important;
}
.subhead5 {
  margin_bottom: 0.5rem;
  font-style: italic;
  font-size: small;
}

.nav-pills-sm .nav-link {
  padding: 0.25rem 0.5rem;   /* default is ~0.5rem 1rem */
  font-size: 0.875rem;      /* same size Bootstrap uses for .btn-sm */
  line-height: 1.2;
}

.nav-item .nav-link {
  border: gainsboro 1px solid;
}
/*.nav-tabs {*/
/*    --bs-nav-link-padding-x: 0.6rem;*/
/*    --bs-nav-link-padding-y: 0.4rem;*/
/*}*/

.nav-tabs .nav-link {
    padding: 0.6rem;
}

.breadcrumb-item .breadcrumb-item active{
  font-size: 0.7rem !important;
}

.edop-subtitle {
  font-size: 1rem;
  white-space: nowrap;
  padding: 2px;
}

.soc-blurb {
  font-size: 0.9rem;
}

.red-subhead {
  color: #993333;
}

.bold-ital {
  font-weight: bold;
  font-style: italic;
}

.modal-body-project p {
  font-size: 1.2rem;
  padding: 0 2rem;
}

/* Computing Place splash tiles */
.cp-tiles {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cp-tile-col {
  width: 220px;
  display: flex;
  flex-direction: column;
}

.cp-tile {
  display: block;
  width: 220px;
  border: 2px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: #f9f9f9;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.cp-tile-blurb {
  margin-top: 0.6rem;
  color: #000;
  font-size: 0.9rem;
  line-height: 1.35;
  padding: 0 8px;
  /*text-align: center;*/
}

.cp-tile img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Scoped to .cp-tile-col (only edops.html wraps tiles this way) so this doesn't affect
   index.html's EDOP/CDOP tiles, which share the base .cp-tile classes. */
.cp-tile-col .cp-tile img {
  object-position: center bottom;
}

.cp-tile-info {
  padding: 0.75rem 0.5rem;
}

.cp-tile-label {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}

.cp-tile-active {
  border-color: #4a7c59;
  cursor: pointer;
}

.cp-tile-active:hover {
  border-color: #3a6248;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cp-tile-disabled {
  opacity: 0.55;
  cursor: default;
  border-color: #ddd;
}

/* Shared EDOPS header (2026-08-03 reorg) -- the 3-page nav-pills. Scoped to .edops-page-pills
   (not a bare .nav-pills override) so it reliably beats Bootstrap's own same-specificity rule
   regardless of <link> load order, and doesn't affect workbench.html's unrelated nav-pills.
   Pale grey inactive state makes the three read as a single nav widget, not plain text links;
   active uses the site's own accent green (matching .cp-tile-active), not Bootstrap's blue. */
.edops-page-pills .nav-link {
  background-color: #e9ecef;
  color: #495057;
}
.edops-page-pills .nav-link.active {
  background-color: #4a7c59;
  color: #fff;
}

/* Shared help-icon harness -- see app/static/js/edops_help.js for the full mode contract
   (tooltip / toggle-panel / modal) and the decorator icons each non-tooltip mode gets. */
.edops-help {
  cursor: help;
  color: #993333;
  font-size: 0.9em;
}
.edops-help[data-help-toggle],
.edops-help[data-help-modal] {
  cursor: pointer;
}
.edops-help-decorator {
  font-size: 1em;
  color: #993333;
  margin-left: 2px;
  cursor: pointer;
}

/* Soft light-blue button, black text -- bare .btn has no hover state of its own (Bootstrap's
   hover rules live on the .btn-* variant classes), so this needs an explicit :hover rather than
   relying on Bootstrap. Used by the API Guide modal's Swagger link (_edops_modals.html).
   Compound selector (.btn.btn-swagger-link, not just .btn-swagger-link) deliberately -- site.css
   loads before the Bootstrap <link> in every page's <head>, so a same-specificity single-class
   rule here would lose the cascade to Bootstrap's own .btn regardless of which order the classes
   are listed in the markup; two classes outweighs Bootstrap's one regardless of load order. */
.btn.btn-swagger-link {
  background-color: #dbeafe;
  border-color: #bfdbfe;
  color: #000;
}
.btn.btn-swagger-link:hover {
  background-color: #bfdbfe;
  border-color: #93c5fd;
  color: #000;
}

/* Experiment: kill Bootstrap's .text-muted grey everywhere, site-wide, without touching the
   ~166 class="text-muted" instances across the templates. body .text-muted (element + class)
   outweighs Bootstrap's own single-class .text-muted rule regardless of <link> load order --
   site.css loads before Bootstrap's own stylesheet on every page. Revert: delete this rule. */
body .text-muted {
  color: inherit !important;
}
