html, body {
  margin: 0;
  padding: 0;
}
    .legend, .cards { width:100%; margin:1rem 0; }
    .legend th, .legend td { padding:0.5rem; text-align:left; }
    .cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:1rem; }
    .card h3 { margin:0 0 0.5rem; font-size:1.1rem; }
    ul { list-style:none; padding-left:0; }
    ul li { padding:0.4rem 0; }
    .no-issues { font-style:italic; color:var(--border); }
    table { width:100%; border-collapse:collapse; margin-top:0.5rem; }
    table th, table td { border:1px solid var(--border); padding:0.5rem; text-align:left; }
    .card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
section {
  margin-top: 1rem;
}

:root {
  --danger:  #EF4444;
  --warning: #F59E0B;
  --info:    #3B82F6;
  --accent:  #1F2937;
  --border:  #E5E7EB;
  --bg:      #F9FAFB;
  --primary: #2563EB;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--accent);
}

h1 {
  font-size: 2rem;
  color: #111827;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
  color: #111827;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.score-ring {
  width: 100px;
  margin: 1rem auto;
}

.circular-chart {
  display: block;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
}

.circle-bg {
  fill: none;
  stroke: #e6e6e6;
  stroke-width: 3.8;
}

.circle {
  fill: none;
  stroke: var(--primary); /* blue */
  stroke-width: 3.8;
  stroke-linecap: round;
  animation: progress 1s ease-out forwards;
  transform: rotate(-90deg);
  transform-origin: center;
}

.percentage {
  fill: var(--accent);
  font-size: 0.5em;
  text-anchor: middle;
  dominant-baseline: middle;
}

@keyframes progress {
  0% {
    stroke-dasharray: 0 100;
  }
}
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  color: #fff; /* ✅ ensure text is white */
  background-color: #3B82F6; /* fallback */
}

.badge.critical { background-color: var(--danger); color: white; }
.badge.warning  { background-color: var(--warning); color: black; }
.badge.info     { background-color: var(--info); color: white; }
.badge.primary  { background-color: var(--primary); color: white; }
.badge.good  { background-color: #04AA6D; color: white; }
.badge.serp { background-color: #6B7280; color: white; }
.badge.neutral { background: #E5E7EB; color: #374151; }

.recommendations-box {
  background: #FEF3C7; /* light amber */
  border-left: 6px solid #F59E0B;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.recommendations-box h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #92400E;
}

.recommendations-box ul {
  margin: 0;
  list-style: disc;
  padding-left: 1.25rem;
}

.recommendations-box li {
  margin: 0.2rem 0 0.25rem 0;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 2rem;
  background-color: white;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.logo {
  max-width: 80px;
  object-fit: contain;
}

.report-left {
  flex: 1;
  min-width: 200px;
}

.report-left h1 {
  margin: 0;
  font-size: 2.0rem;
  color: #111827;
}

.report-left span {
  display: block;
  font-size: 1.2rem;
  color: #4B5563;
}

.report-right {
  text-align: right;
  font-size: 0.95rem;
  color: #374151;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.serp-toggle {
  background: #F3F4F6;
  border: 1px solid #D1D5DB;
  color: #374151;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 4px;
}

.serp-list {
  display: none;
  margin-top: 4px;
  font-size: 0.85rem;
  background: #F9FAFB;
  padding: 6px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  line-height: 1.4;
}

.flex-columns {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.flex-columns > section {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  flex: 1;
  min-width: 300px; /* ensures responsiveness */
  box-sizing: border-box;
}

.flex-columns h2 {
margin-top: 0;
}

table.zebra {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

table.zebra tr:nth-child(even) {
  background-color: #f9f9f9;
}

table.zebra th {
  background-color: #f0f0f0;
  text-align: left;
  padding: 8px;
}

table.zebra td {
  padding: 8px;
}

.report-toc {
  background: #f3f4f6;
  border-left: 4px solid #3B82F6;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.report-toc h2 {
  margin-top: 0;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.report-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.report-toc li {
  margin-bottom: 0.5rem;
}

.report-toc a {
  color: #2563EB;
  text-decoration: none;
  font-weight: 500;
}

.report-toc a:hover {
  text-decoration: underline;
}

.cards.compact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.cards.compact-cards .card {
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-size: 0.9rem;
  text-align: center;
}

.halftbl table th,
.halftbl table td {
  width: 50%;
  /* wrap long text instead of overflow */
  word-wrap: break-word;
}

/* in your existing <style> block */
h1.section-title {
  background-color: var(--info);    /* or your header bg, e.g. #3182CE */
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 2rem;
}

h2.section-heading {
  border-left: 4px solid var(--info);
  padding-left: 0.75rem;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.7rem;
}

h3.section-heading {
  border-left: 4px solid var(--info);
  padding-left: 0.75rem;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* wrap issues into a responsive two-column grid */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

/* style each issue card */
.issue-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  background: #FFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.issue-item h3.issue-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--accent);
}

.issue-item p.issue-why {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.issue-item p.issue-suggestion {
  margin: 0;
  font-size: 0.9rem;
  color: var(--info);
}

/* wrap all issues into one box per category */
.category-box {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  padding: 1rem;
  margin-bottom: 2rem;
}

/* each issue stacked vertically */
.issue-entry {
  margin-bottom: 1.5rem;
}

/* thin line between entries */
.issue-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

/* remove extra bottom margin on the last entry */
.issue-entry:last-child {
  margin-bottom: 0;
}

.how-to-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
}
.how-to-link:hover {
  text-decoration: underline;
}
.usage-instructions {
  background: #F3F4F6;
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 6px;
}
#sticky-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background-color: #111;
  color: #fff;
  z-index: 9999;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sticky-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 10px;
}

.sticky-text {
  flex: 1 1 70%;
}

.sticky-button {
  flex: 1 1 auto;
  text-align: right;
}

@media (max-width: 768px) {
  .sticky-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .sticky-button {
    width: 100%;
    text-align: left;
    margin-top: 10px;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  line-height: 1.2;
}

.btn-white-outline {
  color: #fff;
  border: 2px solid #fff;
  background-color: transparent;
}

.btn-white-outline:hover {
  background-color: #fff;
  color: #111;
}
.blurred-section {
  position: relative;
  max-width: 720px;
  margin: 40px auto;
}

.blurred-section img {
  width: 100%;
  display: block;
  filter: blur(2px);
  border-radius: 6px;
}

.overlay-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(11, 19, 38, 0.9);
  padding: 25px 30px;
  color: #fff;
  width: 85%;
  max-width: 500px;
  border-radius: 10px;
  text-align: left;
  z-index: 10;
}

.overlay-box h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.overlay-box ul {
  margin: 0 0 15px 0;
  padding-left: 20px;
}

.overlay-box ul li {
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.overlay-box a.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  border: 2px solid #fff;
  background: transparent;
  transition: background 0.3s ease;
}

.overlay-box a.btn:hover {
  background: #fff;
  color: #111;
}
