/* Shared IPPS tool styles. Linked by /inc/header.php. */

.ipps-site-header {
  width: 100%;
  min-height: 120px;
  background-image: url('/inc/ipps_header.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 28px;
}

.ipps-site-footer {
  max-width: 1100px;
  margin: 34px auto 0;
  padding: 18px 16px 24px;
  color: #8b92ad;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* Index/home page */
body.ipps-index-page {
  margin: 0;
  min-height: 100vh;
  background: #0f1117;
  color: #e8eaf0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.ipps-index-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 34px;
}

.ipps-index-title {
  margin: 0 0 24px;
  border-left: 3px solid #4f8ef7;
  padding-left: 16px;
}

.ipps-index-title h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.5px;
}

.ipps-index-title p {
  margin: 7px 0 0;
  color: #8b92ad;
  font-size: 14px;
}

.ipps-breadcrumb {
  margin: 0 0 18px;
  color: #8b92ad;
  font-size: 13px;
}

.ipps-breadcrumb a {
  color: #8fb6ff;
  text-decoration: none;
}

.ipps-breadcrumb a:hover {
  text-decoration: underline;
}

.ipps-tile-section {
  margin-top: 22px;
}

.ipps-tile-section h2 {
  margin: 0 0 12px;
  font-size: 13px;
  color: #8b92ad;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ipps-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.ipps-tile {
  display: block;
  min-height: 154px;
  padding: 20px;
  background: #1a1d27;
  border: 1px solid #2e3247;
  border-radius: 14px;
  color: #e8eaf0;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.ipps-tile:hover {
  transform: translateY(-2px);
  border-color: #4f8ef7;
  background: #202536;
}

.ipps-tile .ipps-tile-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(79,142,247,0.16);
  color: #8fb6ff;
  font-size: 22px;
}

.ipps-tile.tool .ipps-tile-icon {
  background: rgba(52,212,160,0.16);
  color: #34d4a0;
}

.ipps-tile h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.2px;
}

.ipps-tile p {
  margin: 0;
  color: #a1a8bf;
  font-size: 13px;
  line-height: 1.5;
}

.ipps-empty-box {
  padding: 18px;
  color: #8b92ad;
  background: #1a1d27;
  border: 1px solid #2e3247;
  border-radius: 12px;
}

@media (max-width: 700px) {
  .ipps-site-header {
    min-height: 82px;
    margin-bottom: 20px;
  }

  .ipps-index-title h1 {
    font-size: 23px;
  }

  .ipps-tile-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .ipps-site-header,
  .ipps-site-footer {
    display: none !important;
  }
}
