/* Xero Integration Docs Page Styles */

.xero-docs {
  flex: 1;
  background: white;
  padding-top: 100px;
}

.xero-docs-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* Table of Contents */
.xero-toc {
  background: var(--light);
  border-radius: 12px;
  padding: 30px 35px;
  margin-bottom: 50px;
}

.xero-toc h2 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.xero-toc ol {
  margin: 0;
  padding-left: 20px;
}

.xero-toc li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.xero-toc li:last-child {
  margin-bottom: 0;
}

.xero-toc a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.xero-toc a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* Section styling */
.xero-section {
  margin-bottom: 55px;
  scroll-margin-top: 120px;
}

.xero-section:last-child {
  margin-bottom: 0;
}

.xero-section h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
}

.xero-section h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-top: 30px;
  margin-bottom: 12px;
  font-weight: 600;
}

.xero-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 15px;
}

.xero-section p:last-child {
  margin-bottom: 0;
}

.xero-section ul,
.xero-section ol {
  margin: 12px 0 18px;
  padding-left: 24px;
}

.xero-section li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 6px;
}

.xero-section li:last-child {
  margin-bottom: 0;
}

/* Numbered steps */
.xero-steps {
  list-style: decimal;
  padding-left: 24px;
  margin: 12px 0 18px;
}

.xero-steps li {
  padding-left: 4px;
}

/* Inline code / paths */
.xero-section code {
  background: var(--light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary);
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Screenshot images */
.xero-screenshot {
  margin: 20px 0 25px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: white;
}

.xero-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

/* Info/note callout */
.xero-note {
  background: var(--light);
  border-left: 4px solid var(--green);
  padding: 16px 20px;
  margin: 18px 0;
  border-radius: 0 10px 10px 0;
}

.xero-note p {
  margin: 0;
  font-size: 0.95rem;
}

.xero-note strong {
  color: var(--primary);
}

/* Warning callout */
.xero-warning {
  background: #fff8f0;
  border-left: 4px solid #e8a838;
  padding: 16px 20px;
  margin: 18px 0;
  border-radius: 0 10px 10px 0;
}

.xero-warning p {
  margin: 0;
  font-size: 0.95rem;
}

.xero-warning strong {
  color: #b07818;
}

/* Data access table */
.xero-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.95rem;
}

.xero-data-table th,
.xero-data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
}

.xero-data-table th {
  background: var(--light);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.xero-data-table tr:last-child td {
  border-bottom: none;
}

.xero-data-table td {
  color: var(--text);
  line-height: 1.5;
}

/* Troubleshooting items */
.xero-troubleshoot-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.xero-troubleshoot-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.xero-troubleshoot-item strong {
  display: block;
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 1rem;
}

.xero-troubleshoot-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* Need help box */
.xero-help-box {
  background: var(--light);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin-top: 60px;
}

.xero-help-box h3 {
  color: var(--primary);
  margin-bottom: 10px;
  margin-top: 0;
  font-size: 1.3rem;
}

.xero-help-box p {
  color: var(--gray);
  margin-bottom: 15px;
  font-size: 1rem;
}

.xero-help-box a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.xero-help-box a:hover {
  text-decoration: underline;
}

/* Links in content */
.xero-section a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
}

.xero-section a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .xero-docs {
    padding-top: 80px;
  }

  .xero-docs-container {
    padding: 0 16px 60px;
  }

  .xero-toc {
    padding: 20px 25px;
  }

  .xero-section h2 {
    font-size: 1.3rem;
  }

  .xero-section h3 {
    font-size: 1.05rem;
  }

  .xero-data-table {
    font-size: 0.85rem;
  }

  .xero-data-table th,
  .xero-data-table td {
    padding: 10px 12px;
  }
}
