/* Phone fixes for the Claude Design pages (linked from index, how-it-works, faq, docs, affiliates, about).
   The export uses inline styles, so overrides need !important. */

/* Safety net: nothing may push the page sideways. clip (not hidden) keeps the sticky header working. */
html, body { overflow-x: clip; }

/* Header: logo + Buy button + menu button must fit a 360 px phone */
@media (max-width: 480px) {
  header > div { padding: 0 14px !important; gap: 10px !important; }
  header > div > a:first-child { font-size: 17px !important; gap: 8px !important; min-width: 0; }
  header > div > a:first-child > span:last-child { white-space: nowrap; }
  header > div > div { gap: 8px !important; flex-shrink: 0; }
  header > div > div > a { padding: 0 11px !important; font-size: 14px !important; }
}
@media (max-width: 350px) {
  header > div > a:first-child > span:first-child { display: none !important; }
}

/* Docs: the Contents box is sticky on desktop; on phones it sits above the text and floats over it */
@media (max-width: 900px) {
  nav[aria-label="User guide contents"] { position: static !important; }
}

/* Home comparison table: on phones show each row as a card so both columns are visible */
@media (max-width: 640px) {
  #compare { overflow: visible !important; border: 0 !important; background: none !important; }
  #compare table, #compare tbody, #compare tr, #compare th, #compare td { display: block; width: 100% !important; min-width: 0 !important; box-sizing: border-box; }
  #compare thead { display: none; }
  #compare tr { background: #FFFFFF; border: 1px solid #E4DDD1; border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
  #compare th, #compare td { padding: 10px 16px !important; border-bottom: 0 !important; }
  #compare th[scope="row"] { font-size: 18px; padding-top: 14px !important; }
  #compare td::before { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #8A7F70; }
  #compare td:nth-of-type(1)::before { content: "Doing it by hand"; }
  #compare td:nth-of-type(2)::before { content: "Publish-Assistant"; color: #8A5A00; }
  #compare td:nth-of-type(2) { padding-bottom: 14px !important; }
}
