body {
  font-family: "Inter", sans-serif;
}

.shadow-level-1,
.ambient-shadow,
.card-shadow {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.shadow-level-2,
.hover-shadow:hover,
.card-shadow-hover:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.material-symbols-outlined.fill {
  font-variation-settings: "FILL" 1;
}

.sr-status {
  min-height: 1.5rem;
}

/* Standard tool page sidebar layout: same width, spacing, and alignment across all tool pages. Do not add page-specific sidebar positioning. */
.tool-page-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.tool-main {
  min-width: 0;
  width: 100%;
}

.tool-sidebar {
  min-width: 0;
  width: 100%;
}

.tool-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: static !important;
  top: auto !important;
  width: 100%;
}

.tool-sidebar-card {
  width: 100%;
}

/* Standard tool hero/breadcrumb design: keep consistent across all tool pages and future tools. */
.tool-hero {
  margin-bottom: 32px;
  text-align: left;
}

.tool-breadcrumb {
  align-items: center;
  color: #434655;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  line-height: 1.4;
  margin-bottom: 24px;
}

.tool-breadcrumb-link {
  color: #434655;
  transition: color 160ms ease;
}

.tool-breadcrumb-link:hover,
.tool-breadcrumb-link:focus-visible {
  color: #2563eb;
}

.tool-breadcrumb-current {
  color: #191b23;
  font-weight: 600;
}

.tool-breadcrumb-separator {
  color: #8f92a3;
  font-size: 16px;
  line-height: 1;
}

.tool-hero-title {
  color: #191b23;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 16px;
}

.tool-hero-description {
  color: #434655;
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
  max-width: 768px;
}

/* Standard tool hero badges: keep pill design consistent across all tool pages. Change only badge text/icons per tool. */
.tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 0;
}

.tool-badge {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #191b23;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  line-height: 1.2;
  min-height: 36px;
  padding: 8px 14px;
  white-space: normal;
}

.tool-badge-icon {
  color: #2563eb;
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

/* Standard related sections: same Related Articles and Related Tools design across all tool pages. Change only titles, descriptions, and links per page. */
.related-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-top: 16px;
  padding: 24px;
}

.related-section h2 {
  color: #191b23;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
}

.related-section .related-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.related-article-card,
.related-tool-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #191b23;
  display: block;
  padding: 16px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.related-article-card h3 {
  color: #191b23;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.related-article-card p {
  color: #434655;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.related-tool-card {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.related-article-card[href]:hover,
.related-article-card[href]:focus-visible,
.related-tool-card:hover,
.related-tool-card:focus-visible {
  background: #f3f3fe;
  border-color: #2563eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.coming-soon-badge {
  background: #f3f3fe;
  border-radius: 999px;
  color: #434655;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 8px;
}

@media (min-width: 1024px) {
  .tool-page-layout {
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .tool-sidebar {
    max-width: 320px;
    width: 320px;
  }
}

.tool-output-list {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  white-space: pre-wrap;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  align-items: center;
  border-radius: 12px;
  border: 1px solid #2563eb;
  display: inline-flex;
  font-size: 16px;
  font-weight: 600;
  gap: 10px;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-primary:active {
  background: #1e40af;
  border-color: #1e40af;
  transform: scale(0.98);
}

.btn-secondary {
  background: #ffffff;
  border-color: #d8dee8;
  color: #0f172a;
}

.btn-secondary:hover {
  background: #f8fafc;
}

.btn-danger {
  background: #ffffff;
  border-color: #d8dee8;
  color: #ba1a1a;
}

.btn-danger:hover {
  background: #fff5f5;
}

.btn-primary .material-symbols-outlined,
.btn-secondary .material-symbols-outlined,
.btn-danger .material-symbols-outlined,
.btn-icon-circle .material-symbols-outlined,
.btn-icon-small .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

.btn-icon-circle {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.08);
  color: #434655;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
  width: 52px;
}

.btn-icon-circle:hover {
  background: #f8fafc;
  border-color: #2563eb;
  color: #2563eb;
}

.btn-icon-circle:active {
  transform: scale(0.97);
}

.btn-icon-small {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #434655;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  width: 36px;
}

.btn-icon-small:hover {
  background: #f8fafc;
  border-color: #d8dee8;
  color: #2563eb;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-danger:focus-visible,
.btn-icon-circle:focus-visible,
.btn-icon-small:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.tool-action-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.tool-action-left,
.tool-action-right {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-action-right {
  margin-left: auto;
}

.content-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-top: 16px;
  padding: 24px;
}

.content-section h2 {
  color: #191b23;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
}

.content-section h3 {
  color: #191b23;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.content-section p {
  color: #434655;
  font-size: 16px;
  line-height: 1.6;
}

.content-grid,
.step-grid,
.related-grid,
.reference-grid,
.mini-table {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.content-card,
.step-card,
.faq-item,
.related-card,
.reference-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.content-card {
  color: #434655;
}

.step-card {
  background: #f3f3fe;
}

/* Standard FAQ design: use this same FAQ section style across homepage, tools, blogs, and future pages. Change only FAQ content per page. */
.faq-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-top: 16px;
  padding: 24px;
}

.faq-container h2 {
  color: #191b23;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
}

.faq-section,
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
}

.faq-question,
.faq-item summary {
  align-items: center;
  color: #191b23;
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 600;
  gap: 16px;
  justify-content: space-between;
  line-height: 1.4;
  list-style: none;
  padding: 16px;
}

.faq-question::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question:hover,
.faq-question:focus-visible,
.faq-item summary:hover,
.faq-item summary:focus-visible {
  background: #f8fafc;
}

.faq-icon {
  color: #2563eb;
  flex: 0 0 auto;
  font-size: 20px;
  transition: transform 160ms ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  border-top: 1px solid #e2e8f0;
  color: #434655;
  font-size: 15px;
  line-height: 1.6;
  padding: 16px;
}

.faq-answer p,
.faq-item p {
  color: #434655;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.related-card {
  color: #191b23;
  display: block;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.related-card:hover {
  background: #f3f3fe;
  border-color: #2563eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
  .content-grid,
  .step-grid,
  .related-grid,
  .reference-grid,
  .mini-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-section .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .content-grid.three-column,
  .related-grid.three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tool-action-row,
  .tool-action-left,
  .tool-action-right {
    width: 100%;
  }

  .tool-action-left > .btn-primary,
  .tool-action-left > .btn-secondary,
  .tool-action-left > .btn-danger,
  .tool-action-right > .btn-primary,
  .tool-action-right > .btn-secondary,
  .tool-action-right > .btn-danger {
    width: 100%;
  }

  .tool-action-right {
    margin-left: 0;
  }
}

.admin-shell {
  min-height: 100vh;
  background: #faf8ff;
  color: #191b23;
  font-family: Inter, system-ui, sans-serif;
}

/* Logo Styling Fallback */
.header-logo-img {
  max-height: 60px;
  width: auto;
  display: block;
}

.footer-logo-img {
  max-height: 64px;
  width: auto;
  display: block;
}

@media (max-width: 640px) {
  .header-logo-img {
    max-height: 52px;
  }
  .footer-logo-img {
    max-height: 48px;
  }
}
