/* Merged Stylesheet using styles_master.css as the primary source */

/* Container styling for index.html */
.index-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* Top bar */
.index-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.index-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #0f172a;
}

.index-brand-logo {
  height: 36px;
  width: auto;
}

.index-brand-text {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0f766e;
}

.index-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.index-nav-link {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  font-size: 0.95rem;
}

.index-nav-link:hover {
  background: #f1f5f9;
  color: #0f766e;
}

.index-nav-link-strong {
  color: #0f766e;
  font-weight: 600;
}

.index-nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}

.index-nav-toggle:hover {
  background: #f1f5f9;
}

.index-nav-menu {
  right: 12px;
  top: 52px;
}

/* Hero band */
.index-hero {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 55%, #5eead4 100%);
  color: #fff;
  padding: 2.25rem 1.5rem 2rem;
  text-align: center;
}

.index-eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  opacity: 0.9;
}

.index-hero-title {
  margin: 0 auto 0.75rem;
  max-width: 46rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.2;
  font-weight: 700;
}

.index-hero-lead {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 1.02rem;
  line-height: 1.5;
  opacity: 0.95;
}

.index-hero-return {
  margin: 1rem 0 0;
}

.index-hero-return a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

/* Audience split */
.index-audience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0 2rem;
}

.index-audience-card {
  padding: 1.35rem 1.4rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.index-audience-buyer {
  border-top: 4px solid #0ea5e9;
}

.index-audience-vendor {
  border-top: 4px solid #0f766e;
}

.index-audience-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #0f172a;
}

.index-audience-desc {
  margin: 0 0 1rem;
  color: #475569;
  line-height: 1.45;
  font-size: 0.95rem;
}

.index-audience-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.index-action-primary,
.index-action-secondary {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.index-action-primary {
  background: #0f766e;
  color: #fff;
}

.index-action-primary:hover {
  background: #0d9488;
}

.index-action-secondary {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.index-action-secondary:hover {
  background: #ccfbf1;
}

.index-action-link {
  color: #0f766e;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.index-action-link:hover {
  text-decoration: underline;
}

.index-dev-note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.section-heading {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: #0f172a;
}

body.index-page {
  margin: 0;
  background: #f8fafc;
  font-family: 'Roboto', system-ui, sans-serif;
}

@media (max-width: 860px) {
  .index-nav {
    display: none;
  }

  .index-nav-toggle {
    display: block;
  }

  .index-audience {
    grid-template-columns: 1fr;
  }
}

/* Container styling for fac.html */
.fac-container {
  max-width: 1400px;
  margin: 40px auto;
  padding: 30px;
  background: #f7f7f7;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

/* General text styling */
h2.index-header, h3.index-header {
  margin-top: 30px;
  margin-bottom: 30px;
  font-weight: bold;
  color: #f472b6;
}

/* General text styling */
h4.index-header {
  margin-top: 30px;
  margin-bottom: 30px;
  font-weight: normal;
  color: #333;
}

h2.fac-header, h3.fac-header {
  margin-top: 25px;
  margin-bottom: 25px;
  font-weight: bold;
  color: #333;
}

footer {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  font-size: 14px;
  color: #999;
}

/* Header styling (legacy pages only — do not fight .index-topbar) */
header:not(.index-topbar) {
  text-align: center;
  margin-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
}

header:not(.index-topbar) .logo {
  width: 15%;
  max-width: 100%;
  height: auto;
}

/* Form container styling for index.html */
.index-form-container {
  display: flex;
  gap: 20px;
  margin: 20px;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Form container styling for fac.html */
.fac-form-container {
  display: block;
  gap: 15px;
  margin: 20px;
  padding: 20px;
  border: 1px solid #ccc;
  background: #fff;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

/* Input field styling */
input[type="text"], input[type="email"], select, input[type="number"] {
  width: calc(100% - 20px);
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

input#website {
  width: calc(100% - 150px);
}

input[type="radio"] {
  margin-right: 10px;
}

span.tooltip {
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
  color: #666;
}


/* Large button styles */
.extra-large-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-top: 50px;
}

/* Button styling for index.html */
.index-button {
  display: block;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to right, #f59e0b, #f59e0b);
  color: white;
  border: 2px solid transparent;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.index-button:hover {
  background: #38D9D2;
  border-color: #38D9D2;
}

/* Button styling for fac.html */
.fac-button {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.fac-button:hover {
  background-color: #0056b3;
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
}

.modal .close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.modal .close:hover,
.modal .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Logo selection styling */
#logo-options img {
  width: 50px;
  height: 100px;
  margin: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

#logo-options img:hover {
  transform: scale(1.1);
  border: 2px solid #007bff;
}

/* Miscellaneous adjustments */
.hidden {
  display: none !important;
}

.visible {
  display: block;
}

.admin-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
}

.admin-btn {
  background: linear-gradient(to right, #f59e0b, #f59e0b);
  color: white;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 15px 30px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.admin-btn:hover {
  background: #38D9D2;
  border-color: #38D9D2;
}

/* Table styling */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
}

.table th, .table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.table th {
  background-color: #f472b6;
  color: white;
}

.table td:nth-child(even) {
  background-color: #f2f2f2;
}

.table td:first-child {
  background-color: #e6f7ff;
  min-width: 250px;
}

/* Hover and selected row styling */
.table tr {
  transition: background-color 0.2s;
}

.table tr:hover td:not(:nth-child(5)):not(:nth-child(6)) {
  background-color: #f5f5f5;
  transition: background-color 0.3s ease;
}

.table tr.selected-row {
  background-color: #e6f7ff;
  font-weight: bold;
}

.table tr.selected-row td {
  background-color: #e6f7ff !important;
  transition: background-color 0.3s ease;
}

.table tr.selected-row td:nth-child(5),
.table tr.selected-row td:nth-child(6) {
  background-color: transparent !important;
}

.row-highlight {
  background-color: #e6f7ff;
  transition: background-color 0.3s ease;
}

/* Button large styling for index.html */
.index-btn-large {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 40px 20px;
  font-size: 18px;
  background-color: #38d9d2;
  color: white;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s;
  height: 350px;
  width: 250px;
}

.index-btn-large:hover {
  background-color: #f59e0b;
}

.index-btn-large.index-btn-featured {
  background: linear-gradient(160deg, #0f766e 0%, #14b8a6 100%);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.25);
  border: 2px solid #5eead4;
}

.index-btn-large.index-btn-featured:hover {
  background: linear-gradient(160deg, #0d9488 0%, #2dd4bf 100%);
}

/* Button large styling for fac.html */
.fac-btn-large {
  position: relative;
  display: inline-block;
  padding: 30px;
  background: #ff9800;
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.fac-btn-large:hover {
  background: #e65100;
}

.fac-icon {
  height: 50px;
  margin-bottom: auto;
}
/* Additional styles for index.html */

.organization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    min-height: 200px;
    margin-top: 0.5rem;
}

.product-card, .organization-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-height: 200px;
    position: relative;
}

/* Enhanced product cards use a grid layout — override legacy absolute positioning */
.product-card.product-card-enhanced,
div.product-card.product-card-enhanced {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 0.5rem;
    align-items: start;
    text-align: left;
    min-height: 0;
    padding: 1rem 1rem 0.85rem;
    border-radius: 14px;
    border: 1px solid #e8e8ec;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card-enhanced .product-card-main {
    display: grid;
    grid-template-rows: auto auto auto auto auto;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.product-card-enhanced .product-card-main:hover {
    text-decoration: none;
    color: inherit;
}

div.product-card.product-card-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.product-card-enhanced .assess-chip {
    display: block;
    width: 100%;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    color: #0f766e;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease;
}

.product-card-enhanced .assess-chip:hover {
    background: #ccfbf1;
    color: #0f766e;
    text-decoration: none;
}

.product-card-enhanced .product-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.product-card-enhanced .product-logo {
    width: 52px;
    height: 52px;
    max-height: none;
    object-fit: contain;
    border-radius: 10px;
    background: #f8fafc;
    padding: 4px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.product-card-enhanced .product-score-badge {
    flex-shrink: 0;
    min-width: 3rem;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    color: #be185c;
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
}

.product-card-enhanced .product-score-badge.pending,
.product-card-enhanced .product-score-badge.in-progress {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    min-width: 4.5rem;
}

.product-card-enhanced .product-functional-area {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d63384;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.product-card-enhanced .product-name {
    position: static;
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-enhanced .product-vendor {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-enhanced .product-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    padding-top: 0.35rem;
    border-top: 1px solid #f1f5f9;
    width: 100%;
}

.product-evidence-chip {
    display: inline-flex;
    margin-top: 0.35rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-evidence-chip.evidence-backed {
    background: #dcfce7;
    color: #166534;
}

.product-evidence-chip.evidence-partial {
    background: #fef3c7;
    color: #92400e;
}

.product-tier-chip {
    display: inline-flex;
    margin-top: 0.35rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.product-tier-chip.indicative {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
}

.product-tier-chip.survey-backed {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #86efac;
}

.product-logo, .organization-logo {
    max-height: 100px;
    width: 100px;
    object-fit: contain;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.organization-card .organization-name {
    font-size: 16px;
    font-weight: bold;
    margin-top: auto;
    padding-top: 10px;
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
}

.icon {
  height: 150px;
  margin-bottom: auto;
}

/* Login form styling */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 100px);
  background-color: #f7f7f7;
}

.login-form {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-form h2 {
  margin-bottom: 20px;
  color: #f472b6;
}

.login-form .form-group {
  margin-bottom: 15px;
  text-align: left;
}

.login-form .form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.login-form .form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.login-form .btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: linear-gradient(to right, #f59e0b, #f59e0b);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.login-form .btn:hover {
  background: #38D9D2;
}

.login-form .btn-secondary {
  background-color: #6c757d;
  margin-top: 20px;
}

.login-form .btn-secondary:hover {
  background-color: #565e64;
}

/* Navbar and dropdown styling (legacy pages) */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 10px;
  background-color: #fff;
  height: 200px;
}

.navbar .logo {
  height: auto;
  width: 240px;
}

.hamburger {
  font-size: 32px;
  background: none;
  border: none;
  color: black;
  position: absolute;
  top: 10px;
  right: 20px;
  width: 50px;
  height: 50px;
  padding: 10px;
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hamburger:hover {
  background-color: #f0f0f0;
}

/* Legacy menu panel — avoid Bootstrap's .dropdown class */
.index-menu,
.dropdown.index-nav-menu {
  display: none;
  position: absolute;
  right: 20px;
  top: 60px;
  background-color: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.index-menu a,
.dropdown.index-nav-menu a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
}

.index-menu a:hover,
.dropdown.index-nav-menu a:hover {
  background-color: #f472b6;
  color: white;
}

/* Tabs styling */
.tabs {
  margin-top: 20px;
}

.browse-tabs-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.browse-nav-tabs {
  border-bottom: 1px solid #e2e8f0;
  padding: 0 0.5rem;
  margin-bottom: 0;
}

.browse-nav-tabs .nav-link {
  font-weight: 600;
  color: #64748b;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.75rem 1.25rem;
  background: transparent;
}

.browse-nav-tabs .nav-link:hover {
  color: #0f766e;
  border-color: transparent;
  background: #f8fafc;
}

.browse-nav-tabs .nav-link.active {
  color: #0f766e;
  border-bottom-color: #0f766e;
  background: transparent;
}

.nav-tabs {
  border-bottom: 1px solid #ddd;
}

.nav-tabs li {
  display: inline-block;
  margin-bottom: -1px;
}

.nav-tabs li a {
  color: #555;
  padding: 10px 20px;
  display: block;
  text-decoration: none;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px 4px 0 0;
}

.nav-tabs li a:hover,
.nav-tabs li.active a {
  background-color: #f472b6;
  color: #fff;
  border-color: #ddd #ddd transparent;
}

.tab-content {
  border: none;
  padding: 1.25rem 1.5rem 1.5rem;
  border-radius: 0;
  background-color: #fff;
}

/* Filter dropdowns styling */
.filter-section {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.filter-dropdowns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem 1.25rem;
}

.filter-dropdowns div {
  min-width: 0;
}

.filter-dropdowns label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.filter-dropdowns .form-select,
.filter-dropdowns select.form-control {
  width: 100%;
  padding: 0.45rem 0.6rem;
  font-size: 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #fff;
  height: auto;
}

.filter-actions {
  margin-top: 0.75rem;
}

.filter-actions .btn {
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
}

.browse-unassessed-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.75rem 0 1rem;
  padding: 0.55rem 0.15rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  user-select: none;
  width: fit-content;
  max-width: 100%;
}

.browse-unassessed-toggle input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #0f766e;
  cursor: pointer;
}

.browse-unassessed-toggle span {
  line-height: 1.3;
}

.organization-status {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.section-heading {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #1e293b;
}

