*, *::before, *::after {
  box-sizing: border-box;
}

/* ===================================================
🎨 GLOBAL STYLING
=================================================== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #222;
  line-height: 1.5;
}
html { scroll-behavior: smooth; }

/* ===================================================
🧭 HEADER & NAVIGATION
=================================================== */
header {
  background: #222;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
header h1 {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}
header h1 img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-right: 10px;
}
header h1 a {
  color: #fff;
  text-decoration: none;
}
nav a {
  margin-left: 15px;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}
nav a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* Responsive Nav */
@media (max-width: 768px) {
  header { flex-direction: column; align-items: flex-start; }
  nav { display: flex; flex-wrap: wrap; margin-top: 0.5rem; }
  nav a { margin: 5px 10px 0 0; }
}

/* ===================================================
📦 SECTION & CARD LAYOUT
=================================================== */
section {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0;
  box-sizing: border-box;
}
.card {
  background: #fff;
  padding: 1.75rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}
h2, h3 {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: #333;
  margin-top: 0;
}
h2 { font-size: 1.6rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
p { margin-bottom: 0.75rem; line-height: 1.6; }
ul, ol { margin-left: 1.2rem; }
ul li, ol li { margin-bottom: 0.4rem; }
hr { border: none; border-top: 1px solid #e5e7eb; margin: 1.5rem 0; }

/* ===================================================
🪶 REPORT SAMPLE CARD STYLING
=================================================== */
.report {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin: 1rem 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  transition: all 0.25s ease-in-out;
}

.report:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.report h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #1f2937;
}

.report h4 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  color: #2563eb;
}

.report table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  background-color: #fafafa;
}

.report th, .report td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  text-align: left;
}

.report th {
  background-color: #f1f5f9;
  font-weight: 600;
}

.report tr:nth-child(even) {
  background-color: #f9fafb;
}

.report ul {
  margin-left: 1.25rem;
}

.report li {
  margin-bottom: 0.4rem;
}

.report .muted {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: right;
  margin-top: 1rem;
}

/* Optional: nicer summary hover effect */
details summary:hover {
  background: #f0f9ff;
  transition: background 0.3s ease;
}
.report-header-tag {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

/* ===================================================
📊 TABLES
=================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}
th, td {
  border: 1px solid #ddd;
  padding: 6px 10px;
  text-align: left;
}
thead th {
  background: #f5f7fa;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
tbody tr:nth-child(odd) { background: #fafafa; }
tbody tr:hover { background: #eef6ff; transition: background 0.2s ease-in-out; }

/* ===================================================
🔍 DETAILS / ACCORDIONS
=================================================== */
details {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
summary {
  background: #f9fafb;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-weight: 600;
  color: #333;
}
details[open] summary {
  background: #e6f0ff;
  transition: background 0.25s;
}
details p { padding: 0.5rem 0.75rem; margin: 0; }

/* ===================================================
⬆️ BACK TO TOP BUTTON
=================================================== */
#backTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #38bdf8;
  color: #fff;
  padding: 10px 12px;
  border-radius: 50%;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  opacity: 0.9;
  display: none;
  transition: opacity 0.3s, background 0.2s, transform 0.3s ease-in-out;
}
#backTop:hover {
  background: #0ea5e9;
  opacity: 1;
  transform: rotate(15deg);
}
/* ===================================================
🐙 GITHUB BUTTON (Classic Style)
=================================================== */
.github-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #24292e;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.25s ease, transform 0.2s ease;
  margin-top: 10px;
}

.github-button svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.github-button:hover {
  background-color: #000;
  transform: translateY(-2px);
}
/* ===================================================
⚫️ FOOTER STYLING
=================================================== */
footer {
  background-color: #1e1e1e;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.95rem;
}

footer a {
  color: #9ecaff;
  text-decoration: none;
  transition: color 0.25s ease;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}
#markers details table {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

#markers details summary {
  font-weight: 600;
  background: #f8fafc;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
}

#markers details[open] summary {
  background: #e7f1ff;
}

#markers p.muted {
  margin-top: 1.5rem;
  text-align: center;
}
.muted-left {
  color: #6b7280;
  font-size: 0.85rem;
  font-style: italic;
  text-align: left;
  margin-top: 1.5rem;
}
.muted-center {
  color: #6b7280;
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
  margin-top: 1.5rem;
}
.card a:hover {
  color: #0ea5e9;
  text-decoration: underline;
}
.codeblock {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  background: #f9fafb;
  border-radius: 6px;
}
#markers td, #markers th {
  padding: 5px 8px;
  line-height: 1.3;
}
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}
#markers details summary:hover {
  background: #edf6ff;
  transition: background 0.25s ease;
}
/* Normalize emoji + heading alignment */
h2, h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

h2 span.icon, h3 span.icon {
  font-size: 1.3em;
  line-height: 1;
  margin-right: 0.35rem;
  display: inline-block;
}
/* ✅ Normalize all cards inside sections */
section .card {
  width: 100%;
  margin: 0 auto 2rem;
  box-sizing: border-box;
}
.content-left {
  text-align: left;
  max-width: 850px;
  margin: 0 auto;
}

.image-center {
  text-align: center;
  margin: 1.25rem 0;
}

.image-center img {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.codeblock {
  background: #f9fafb;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-align: center;
  overflow-x: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.codeblock pre {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  background: transparent;
}

/* === DEBUG GRID VISUALIZER === */
/*section {
  outline: 2px dashed rgba(56, 189, 248, 0.6);
}
.card {
  outline: 2px dashed rgba(255, 99, 71, 0.6);
}
body, main, .content {
  outline: 2px dashed rgba(0, 255, 0, 0.3);
}
*/

