/* ===========================================================================
   SERVICE PAGES — readable document layout
   ---------------------------------------------------------------------------
   Contact, Shipping & Returns, Terms of Service, and Privacy Policy.
   Styled for scannability and accessibility: constrained measure,
   clear heading hierarchy, generous spacing, and mobile-first typography.
   ========================================================================= */

/* Content container — constrain to ~65ch for readability */
.entry-content {
  max-width: var(--measure); /* 62ch from tokens.css */
  margin: 0;
}

/* Headings — clear visual hierarchy with spacing */
.entry-content h2 {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--wrap);
  text-transform: uppercase;
  margin-top: 2em;
  margin-bottom: 0.8em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--rule);
}

/* First h2 needs less top margin */
.entry-content > h2:first-of-type {
  margin-top: 0;
}

.entry-content h3 {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 600;
  color: var(--wrap-deep);
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

/* Paragraphs — improve baseline spacing */
.entry-content p {
  margin: 0 0 1.1em;
  line-height: 1.65;
  color: var(--wrap-deep);
}

/* Emphasis — ensure strong/em are readable */
.entry-content strong {
  font-weight: 600;
  color: var(--wrap-deep);
}

.entry-content em {
  font-style: italic;
  color: var(--graphite);
}

/* Lists — improve spacing and readability */
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
  line-height: 1.65;
}

.entry-content li {
  margin: 0 0 0.7em;
  color: var(--wrap-deep);
}

.entry-content li p {
  margin: 0;
  display: inline;
}

/* Nested lists */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
  margin: 0.7em 0 0;
  padding-left: 1.5em;
}

/* Links — ensure consistency and accessibility */
.entry-content a {
  color: var(--wrap);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content a:hover {
  color: var(--stamp);
}

.entry-content a:focus-visible {
  outline: 3px solid var(--stamp);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Email addresses — formatted as prominent links */
.entry-content a[href^="mailto:"] {
  font-weight: 600;
  font-family: var(--body);
}

/* Inline code / data — use monospace */
.entry-content code {
  font-family: var(--mono);
  font-size: 0.95em;
  background: rgba(109, 97, 86, 0.08);
  padding: 2px 5px;
  border-radius: 2px;
  color: var(--wrap-deep);
}

/* Blockquote — rare, but support it */
.entry-content blockquote {
  border-left: 3px solid var(--wrap);
  padding-left: 1.25em;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--graphite);
}

/* Horizontal rule — if used, style it */
.entry-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2em 0;
}

/* Tables — if present, keep them readable */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}

.entry-content table th,
.entry-content table td {
  border: 1px solid var(--rule);
  padding: 0.75em;
  text-align: left;
}

.entry-content table th {
  background: var(--label);
  color: var(--wrap);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entry-content table td {
  color: var(--wrap-deep);
}

/* Mobile adjustments — improve readability at 320-414px */
@media (max-width: 600px) {
  .entry-content {
    padding: 0 var(--gutter);
  }

  .entry-content h2 {
    font-size: clamp(20px, 5vw, 24px);
    margin-top: 1.5em;
    margin-bottom: 0.7em;
  }

  .entry-content h3 {
    font-size: clamp(16px, 4vw, 18px);
    margin-top: 1.2em;
    margin-bottom: 0.5em;
  }

  .entry-content p {
    font-size: 16px;
    margin-bottom: 1em;
  }

  .entry-content ul,
  .entry-content ol {
    padding-left: 1.25em;
    margin-bottom: 1.2em;
  }

  .entry-content li {
    margin-bottom: 0.6em;
  }

  /* Ensure touch targets are ≥44px */
  .entry-content a {
    padding: 2px 0;
  }

  .entry-content code {
    word-break: break-word;
  }
}

/* Reduced motion — respect user preferences */
@media (prefers-reduced-motion: reduce) {
  .entry-content a {
    transition: none;
  }
}

/* WordPress turns every source line break into <br>; on the policy pages
 * those split sentences mid-line. Contact keeps its (address) breaks. */
body:not(.page-id-6610) .entry-content p br{display:none}
