/* =========================
   TOOL PAGES / GRAFCHECK
========================= */
.tool-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
}

.header-row {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-logo {
  text-decoration: none;
  color: #000;
  font-weight: 900;
  letter-spacing: -.02em;
}

.back-site-link {
  color: #666;
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}

.back-site-link:hover {
  color: #000;
}

.tool-nav {
  display: flex;
  gap: 30px;
}

.tool-nav a {
  color: #555;
  text-decoration: none;
  font-size: .95rem;
}

.tool-nav a:hover {
  color: #000;
}

.container {
  width: min(1280px, calc(100% - 60px));
  margin-inline: auto;
}

.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.form-control {
  width: 100%;
  padding: 16px;
  border: 1px solid #ccc;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: #000;
}

.tool-page {
  background: #fff;
}

.tool-hero,
.result-hero {
  padding: 110px 0 60px;
}

.back-link {
  display: inline-block;
  margin-bottom: 50px;
  color: #000;
  text-decoration: none;
  font-size: .95rem;
}

.back-link:hover {
  text-decoration: underline;
}

.tool-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
  color: #666;
  margin-bottom: 20px;
}

.tool-hero h1,
.result-hero h1 {
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 900;
  line-height: .9;
  margin-bottom: 30px;
}

.tool-intro,
.result-meta {
  max-width: 780px;
  font-size: 1.3rem;
  line-height: 1.55;
}

.tool-upload-section {
  padding: 40px 0 120px;
}

.upload-card {
  max-width: 760px;
  padding: 50px;
  border-top: 3px solid #000;
  background: #fafafa;
}

.upload-label {
  display: block;
  font-weight: 700;
  margin-bottom: 15px;
}

.upload-note,
.small-note {
  color: #666;
  font-size: .95rem;
  margin-top: 25px;
}

.status-block {
  margin-top: 50px;
  padding: 35px;
  border-top: 3px solid #000;
  background: #fafafa;
  display: flex;
  gap: 25px;
  align-items: center;
}

.status-block p {
  margin: 0;
  font-size: 1.25rem;
}

.status-pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: .85rem;
}

.status-error {
  background: #dc3545;
  color: #fff;
}

.status-warning {
  background: #ffc107;
  color: #000;
}

.status-ok {
  background: #198754;
  color: #fff;
}

.result-section {
  padding: 40px 0 120px;
  background: #f5f5f5;
}

.result-card {
  background: #fff;
  padding: 45px;
  margin-bottom: 35px;
  border-top: 3px solid #000;
}

.result-card h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 900;
  margin-bottom: 20px;
}

.result-card > p {
  font-size: 1.08rem;
  line-height: 1.6;
}

.result-table {
  margin-top: 25px;
}

.result-table th {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #666;
}

.result-table td {
  vertical-align: middle;
}

@media (max-width: 768px) {
  .tool-hero,
  .result-hero {
    padding: 70px 0 40px;
  }

  .upload-card,
  .result-card,
  .status-block {
    padding: 28px;
  }

  .status-block {
    display: block;
  }

  .status-block p {
    margin-top: 20px;
  }
}

.quick-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 35px;
}

.qs-item {
  padding: 12px 18px;
  background: #fff;
  border: 1px solid #eee;
  font-size: .9rem;
  font-weight: 600;
}

.qs-item.ok {
  border-left: 3px solid #198754;
}

.qs-item.warning {
  border-left: 3px solid #e6a817;
}

.qs-item.error {
  border-left: 3px solid #dc3545;
}

.qs-item.neutral {
  border-left: 3px solid #000;
}

.pdf-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 20px;
  margin-top: 40px;
}

.meta-box {
  background: #fff;
  border: 1px solid #eee;
  padding: 24px;
}

.meta-label {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #999;
  margin-bottom: 10px;
}

.meta-box strong {
  font-size: 1.4rem;
}

.pdf-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 20px;
  margin-top: 40px;
}

.meta-box {
  background: #fff;
  border: 1px solid #eee;
  padding: 24px;
}

.meta-label {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #999;
  margin-bottom: 10px;
}

.meta-box strong {
  font-size: 1.4rem;
}

.institutional-strip {
  background: #f5f5f5;
  border-top: 1px solid #e8e8e8;
  padding: 30px 0;
}


.institutional-row img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
  opacity: .92;
  transition: opacity .2s ease;
}

.institutional-row img:hover {
  opacity: 1;
}


.institutional-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}

.logo-caib {
  height: 72px;
  width: auto;
}

.logo-ministeri {
  height: 58px;
  width: auto;
}

.logo-ue {
  height: 72px;
  width: auto;
}
.tool-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  z-index: 1000;

  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(0,0,0,.06);
}

.header-row {
  height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-logo {
  color: #000;
  text-decoration: none;

  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -.03em;
}

.tool-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.tool-nav a {
  color: #666;
  text-decoration: none;

  font-size: .85rem;
  font-weight: 500;

  transition: color .2s ease;
}

.tool-nav a:hover {
  color: #000;
}