/*
 * AtomicTax Help Center — static styles aligned with merchant app theme
 * Primary matches atomickit-web/src/assets/scss/_variable.scss ($themecolor)
 */
:root {
  --at-theme-primary: #304398;
  --at-theme-primary-alt: #6879b3;
  --at-theme-dark: #1e1e1e;
  --at-theme-muted: #4a5568;
  --at-theme-bg: #f7f8fb;
  --at-theme-card: #ffffff;
  --at-theme-border: #e4e9ef;
  --at-font-sans: "Poppins", "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--at-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--at-theme-dark);
  background: var(--at-theme-bg);
}

a {
  color: var(--at-theme-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--at-theme-primary-alt);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--at-theme-primary);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--at-theme-card);
  border-bottom: 1px solid var(--at-theme-border);
  box-shadow: 0 1px 0 rgba(48, 67, 152, 0.06);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--at-theme-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-brand:hover {
  color: var(--at-theme-primary-alt);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--at-theme-dark);
}

.site-nav a:hover {
  color: var(--at-theme-primary);
}

.hero {
  background: linear-gradient(135deg, var(--at-theme-primary) 0%, #243578 100%);
  color: #fff;
  padding: 2.75rem 1.25rem 3rem;
}

.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0;
  max-width: 42rem;
  opacity: 0.95;
  font-size: 1.05rem;
}

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.grid-two {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .grid-two {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.toc {
  position: sticky;
  top: 4.5rem;
  background: var(--at-theme-card);
  border: 1px solid var(--at-theme-border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--at-theme-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.toc li {
  margin-bottom: 0.45rem;
}

.toc a {
  text-decoration: none;
  color: var(--at-theme-muted);
  font-weight: 500;
}

.toc a:hover {
  color: var(--at-theme-primary);
}

article.section {
  background: var(--at-theme-card);
  border: 1px solid var(--at-theme-border);
  border-radius: 8px;
  padding: 1.5rem 1.35rem 1.65rem;
  margin-bottom: 1.25rem;
  scroll-margin-top: 5rem;
}

article.section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  color: var(--at-theme-primary);
  letter-spacing: -0.02em;
}

article.section h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--at-theme-dark);
}

article.section p {
  margin: 0 0 0.85rem;
  color: var(--at-theme-muted);
}

article.section ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
  color: var(--at-theme-muted);
}

article.section li {
  margin-bottom: 0.35rem;
}

.placeholder-note {
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  background: rgba(48, 67, 152, 0.06);
  border-left: 3px solid var(--at-theme-primary);
  border-radius: 4px;
  color: var(--at-theme-dark);
}

.external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 0.75rem;
}

.external-links a {
  font-weight: 600;
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--at-theme-border);
  background: var(--at-theme-card);
  padding: 2rem 1.25rem;
  margin-top: 1rem;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--at-theme-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 500;
}
