/* Shared site-wide tool navigation — matches hub + app editorial system */

.suite-footer {
  --sn-black: var(--eerie-black, hsl(225, 9%, 9%));
  --sn-muted: var(--eerie-black-60, hsla(225, 9%, 9%, 0.55));
  --sn-border: var(--light-gray-2, hsl(240, 2%, 81%));
  --sn-surface: var(--cultured, hsl(300, 8%, 96%));
  --sn-white: var(--white, hsl(0, 0%, 100%));
  --sn-sans: var(--font-sans, "DM Sans", system-ui, sans-serif);
  --sn-mono: var(--font-mono, "IBM Plex Mono", ui-monospace, monospace);
  --sn-ease: var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
  --sn-dur: var(--dur, 280ms);

  position: relative;
  z-index: 1;
  max-width: min(1100px, 100%);
  margin-inline: auto;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 2.5vw, 1.35rem)
    clamp(1.5rem, 3.5vw, 2rem);
  background: var(--sn-white);
  border: 1px solid var(--sn-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition: border-color var(--sn-dur) var(--sn-ease);
}

.suite-footer:hover {
  border-color: hsl(240, 4%, 72%);
}

.suite-nav {
  max-width: 100%;
  margin: 0;
}

/* Mono kicker — same voice as .catalog__label / .footer__text */
.suite-nav::before {
  content: "More PDF tools";
  display: block;
  margin: 0 0 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--sn-black);
  max-width: 12rem;
  font-family: var(--sn-mono);
  font-size: clamp(0.58rem, 0.54rem + 0.1vw, 0.65rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sn-muted);
}

.suite-nav__intro,
.suite-nav__hub-lead {
  font-family: var(--sn-sans);
  font-size: clamp(0.88rem, 0.82rem + 0.2vw, 0.98rem);
  line-height: 1.55;
  color: var(--sn-muted);
  margin: 0 0 1.15rem;
  max-width: 62ch;
}

.suite-nav__intro strong,
.suite-nav__hub-lead strong {
  color: var(--sn-black);
  font-weight: 600;
}

.suite-nav__intro a,
.suite-nav__hub-lead a {
  color: var(--sn-black);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--sn-dur) var(--sn-ease), text-decoration-color var(--sn-dur) var(--sn-ease);
}

.suite-nav__intro a:hover,
.suite-nav__hub-lead a:hover {
  color: var(--sn-black);
  text-decoration-color: var(--sn-muted);
}

/* Editorial link grid — card-adjacent tiles */
.suite-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 0.5rem 0.65rem;
}

.suite-nav__list li {
  margin: 0;
}

.suite-nav__list a {
  display: block;
  font-family: var(--sn-sans);
  font-size: clamp(0.8rem, 0.76rem + 0.15vw, 0.875rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--sn-black);
  text-decoration: none;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--sn-border);
  background: var(--sn-white);
  transition:
    border-color var(--sn-dur) var(--sn-ease),
    background var(--sn-dur) var(--sn-ease),
    box-shadow var(--sn-dur) var(--sn-ease);
}

.suite-nav__list a:hover,
.suite-nav__list a:focus-visible {
  border-color: var(--sn-black);
  background: var(--sn-surface);
  box-shadow: 3px 3px 0 0 var(--sn-black);
}

.suite-nav__list a:focus-visible {
  outline: 2px solid var(--sn-black);
  outline-offset: 2px;
}

.suite-nav__here {
  display: block;
  font-family: var(--sn-sans);
  font-size: clamp(0.8rem, 0.76rem + 0.15vw, 0.875rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--sn-black);
  padding: 0.55rem 0.65rem;
  border: 2px solid var(--sn-black);
  background: linear-gradient(180deg, var(--sn-surface) 0%, var(--sn-white) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Sitemap / robots — mono footer line */
.suite-nav__meta {
  margin: 1.35rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--sn-border);
  font-family: var(--sn-mono);
  font-size: clamp(0.58rem, 0.54rem + 0.1vw, 0.65rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sn-muted);
}

.suite-nav__meta a {
  color: var(--sn-black);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--sn-dur) var(--sn-ease),
    color var(--sn-dur) var(--sn-ease);
}

.suite-nav__meta a:hover,
.suite-nav__meta a:focus-visible {
  border-bottom-color: var(--sn-black);
}

.suite-nav__meta a:focus-visible {
  outline: 2px solid var(--sn-black);
  outline-offset: 3px;
}

/* Hub footer: nest inside .footer without double heavy chrome */
.footer .suite-footer {
  margin-top: clamp(1.35rem, 3.5vw, 2rem);
  margin-inline: 0;
  max-width: none;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: clamp(1rem, 2.5vw, 1.35rem) 0 0;
}

.footer .suite-footer:hover {
  border-color: transparent;
}

.footer .suite-nav::before {
  border-bottom-color: var(--sn-border);
  color: var(--sn-muted);
}

.footer .suite-nav__list a {
  background: var(--sn-white);
}

.footer .suite-nav__list a:hover,
.footer .suite-nav__list a:focus-visible {
  background: var(--sn-surface);
}

/* Opt-in card footer style for hub-like pages */
.footer.footer--card .suite-footer {
  margin-top: clamp(2rem, 5vw, 3rem);
  margin-inline: auto;
  max-width: min(1100px, 100%);
  background: var(--sn-white);
  border: 1px solid var(--sn-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 2.5vw, 1.35rem)
    clamp(1.5rem, 3.5vw, 2rem);
}

.footer.footer--card .suite-footer:hover {
  border-color: hsl(240, 4%, 72%);
}

.footer.footer--card .suite-nav::before {
  border-bottom-color: var(--sn-black);
  color: var(--sn-muted);
}

/* Homepage tighter footer card: closer and same content width */
.footer.footer--tight.footer--card .suite-footer {
  margin-top: clamp(0.45rem, 1.5vw, 0.9rem);
  margin-inline-start: calc(-1 * (var(--pad-x) + clamp(0.2rem, 1.5vw, 0.65rem)));
  margin-inline-end: calc(-1 * (var(--pad-x-end) + clamp(0.2rem, 1.5vw, 0.65rem)));
  max-width: none;
  width: auto;
}

.footer.footer--wide.footer--card .suite-footer {
  margin-top: clamp(0.35rem, 1.1vw, 0.7rem);
  margin-inline: 0;
  width: 100%;
  max-width: none;
}

.footer.footer--wide .footer__inner.wrap {
  width: min(1100px, 100%);
  max-width: min(1100px, 100%);
  margin-inline: auto;
  padding-inline: 0;
}

/* App-level "guides for real workflows" card */
.seo-related-guides {
  --rg-black: var(--eerie-black, hsl(225, 9%, 9%));
  --rg-muted: var(--eerie-black-60, hsla(225, 9%, 9%, 0.55));
  --rg-border: var(--light-gray-2, hsl(240, 2%, 81%));
  --rg-surface: var(--cultured, hsl(300, 8%, 96%));
  --rg-white: var(--white, hsl(0, 0%, 100%));
  margin-top: clamp(1.1rem, 2.5vw, 1.5rem);
}

.seo-related-guides h2 {
  margin: 0 0 0.7rem;
}

.seo-related-guides > p {
  margin: 0 0 0.9rem;
  max-width: 64ch;
  color: var(--rg-muted);
}

.seo-related-guides ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.5rem 0.65rem;
}

.seo-related-guides li {
  margin: 0;
}

.seo-related-guides li a {
  display: block;
  text-decoration: none;
  color: var(--rg-black);
  font-size: clamp(0.8rem, 0.76rem + 0.15vw, 0.875rem);
  font-weight: 500;
  line-height: 1.35;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--rg-border);
  background: var(--rg-white);
  transition:
    border-color var(--sn-dur) var(--sn-ease),
    background var(--sn-dur) var(--sn-ease),
    box-shadow var(--sn-dur) var(--sn-ease);
}

.seo-related-guides li a:hover,
.seo-related-guides li a:focus-visible {
  border-color: var(--rg-black);
  background: var(--rg-surface);
  box-shadow: 3px 3px 0 0 var(--rg-black);
}

.seo-related-guides > p:last-child {
  margin-top: 0.9rem;
  margin-bottom: 0;
}

.seo-related-guides > p:last-child a {
  display: inline-block;
  font-family: var(--sn-mono);
  font-size: clamp(0.58rem, 0.54rem + 0.1vw, 0.65rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rg-black);
  text-decoration: none;
  border-bottom: 1px solid var(--rg-black);
}

.seo-related-guides > p:last-child a:hover,
.seo-related-guides > p:last-child a:focus-visible {
  border-bottom-color: transparent;
}

/* App FAQ card shared across all tools */
.app-faq h2 {
  margin-bottom: 0.9rem;
}

.app-faq h3 {
  margin: 0;
  font-family: var(--sn-sans);
  font-size: clamp(0.92rem, 0.88rem + 0.16vw, 1rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--sn-black);
}

.app-faq h3 + p {
  margin-top: 0.4rem;
}

.app-faq p {
  margin: 0 0 0.9rem;
  max-width: 66ch;
  color: var(--sn-muted);
}

.app-faq p:last-child {
  margin-bottom: 0;
}

/* App "Who this is for" card */
.app-who-for h2 {
  margin-bottom: 0.85rem;
}

.app-who-for p {
  margin: 0 0 0.85rem;
  max-width: 68ch;
  color: var(--sn-muted);
}

.app-who-for p strong {
  color: var(--sn-black);
  font-weight: 600;
}

.app-who-for p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .suite-footer,
  .suite-nav__list a,
  .suite-nav__intro a,
  .suite-nav__hub-lead a,
  .suite-nav__meta a,
  .seo-related-guides li a {
    transition: none;
  }

  .suite-nav__list a:hover,
  .suite-nav__list a:focus-visible,
  .seo-related-guides li a:hover,
  .seo-related-guides li a:focus-visible {
    box-shadow: none;
  }
}
