/* Blue scholarly theme. Shared layouts and manuscript assets live in site.css. */
html[data-language-pending] body {
  visibility: hidden;
}

:root {
  --accent: #087fbd;
  --accent-soft: #e8f4fb;
  --muted: #5b6f80;
  --line: #e0e8ef;
  --shadow: 0 4px 18px #183f5d08;
}
/* Clarify reading surfaces without enlarging the layout. */
main p {
  text-wrap: pretty;
}
.invoice-items summary {
  cursor: pointer;
  color: var(--accent);
}
.invoice-items ul {
  margin: 8px 0;
  padding-left: 20px;
}
body[data-page='payment'] .business-hero .hero-grid {
  grid-template-columns: 1fr;
}
body[data-page='faq'] .hero-grid,
body[data-page='pricing'] .invoice-grid {
  grid-template-columns: minmax(0, 1fr);
}
.business-footer-grid,
.footer-bottom {
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  column-gap: 30px;
}
.footer-bottom {
  display: grid;
}
.footer-bottom > span:first-child {
  grid-column: 1 / 5;
}
.footer-bottom > span:last-child {
  grid-column: 5;
}
html[lang='en'] .contact-channels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-card,
.service-card:not(.featured),
.contact-channels article:not(.channel-dark),
.business-feature-grid .paper-surface {
  border-color: #dfe8ef;
  box-shadow: var(--shadow);
}
.form-field :is(input, select, textarea) {
  border-color: #d9e4ed;
  background-color: #f9fbfd;
}
.form-field :is(input, select, textarea):focus-visible {
  border-color: var(--accent);
  outline: 2px solid #087fbd;
  outline-offset: 2px;
}
.service-card:hover {
  transform: translateY(-3px);
}
.desktop-nav > a[aria-current='page'],
.desktop-nav .nav-group > a[aria-current='page'] {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav-menu-list {
  min-width: 270px;
  padding: 10px;
}
.desktop-nav .nav-menu-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 12px;
}
.nav-group:last-of-type .nav-menu-list {
  left: auto;
  right: 0;
}
.service-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}
.nav-menu-list .service-mark {
  width: 34px;
  height: 34px;
}
.heading-mark {
  display: inline-block;
  width: 37px;
  height: 37px;
  margin-right: 10px;
  vertical-align: -7px;
}
.discipline-strip .container {
  height: auto;
  min-height: 72px;
  padding-block: 16px;
}
.file-drop.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.original-service-catalog > a > .service-mark {
  position: absolute;
  top: 128px;
  right: 21px;
  width: 36px;
  height: 36px;
}
.original-service-catalog > a:not(:has(.original-service-thumbnail)) > .service-mark {
  top: 20px;
}
.business-service-grid .business-service-entry {
  border-top: 3px solid var(--accent);
}
.business-service-entry > .service-mark {
  position: absolute;
  top: 16px;
  right: 23px;
  width: 45px;
  height: 45px;
}
.business-feature-grid article > .service-mark,
.original-guarantees article > .service-mark {
  margin-bottom: 12px;
}
.service-card .card-top .service-mark {
  width: 44px;
  height: 44px;
  margin-right: auto;
  margin-left: 14px;
}
.principle-grid > article > .icon,
.preparation-grid > article > .icon {
  width: 49px;
  height: 49px;
  padding: 11px;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
}
.process-number {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.process-number .service-mark {
  width: 60px;
  height: 60px;
}
.process-number b {
  font: inherit;
  color: var(--accent);
}
.tier-option,
.timeline-options > label {
  transition:
    border-color 0.18s,
    background-color 0.18s,
    box-shadow 0.18s;
}
.timeline-options > label {
  margin-left: -16px;
  padding-left: 16px;
}
.tier-option:hover,
.timeline-options > label:hover {
  border-color: var(--accent);
}
.tier-option:has(input:checked),
.timeline-options > label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}
.tier-option-content > b,
.receipt-total strong,
.word-input input {
  font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.price-contact-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.price-contact-link:hover {
  text-decoration-thickness: 2px;
}
.price-contact-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}
.tier-option .price-contact-link {
  font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
  font-size: 15px;
}
.quote-receipt .price-contact-link,
.service-card.featured .price-contact-link {
  color: #b6e5fa;
}
.price-currency-badge {
  align-self: center;
  padding: 10px 14px;
  border: 1px solid #c7deed;
  border-radius: 5px;
  background: #eef7fc;
  color: #24516f;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.email-contact-section {
  padding-block: 30px;
}
.email-contact-section .section-heading {
  margin-bottom: 12px;
}
.email-contact-copy {
  max-width: 960px;
  font-size: 14px;
  line-height: 1.9;
}
.email-contact-copy a,
.email-contact-copy button[data-copy] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.paper-dark .email-contact-copy a {
  color: #91d8fc;
}
.email-contact-section .contact-form-layout {
  display: block;
}
.email-contact-section .contact-form-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
  gap: 48px;
  padding-top: 0;
}
.email-contact-section .contact-form-intro h2 {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.4;
}
.contact-message-copy > p {
  margin-top: 12px;
  font-size: 14px;
}
.contact-message-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 8px;
}
.contact-message-details .office-hours {
  margin-top: 0;
}
/* Keep the comparison header flush with the container edges. */
.comparison-scroll,
.paper-dark .comparison-scroll.paper-surface {
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
}
.comparison-table {
  margin: 0;
}
.comparison-table thead th {
  background: var(--navy);
  color: #fff;
}
.comparison-table tbody :is(th, td) {
  background: #ffffffed;
}
.comparison-table tbody td:nth-child(3) {
  background: #eef6fbed;
}
.paper-dark,
.business-next,
.cta-section,
.site-footer {
  background-size: cover;
  background-repeat: no-repeat;
  background-origin: border-box;
  background-clip: border-box;
}
body[data-page='faq'] .section-after-hero {
  padding-bottom: 0;
}
img[src$='/Standard-Editing.png'],
img[src$='/Premium-Editing.png'] {
  object-fit: cover;
  object-position: center 18%;
}
body:is([data-page='standard-editing'], [data-page='premium-editing']) .original-document img {
  height: 360px;
}
.editorial-manuscript {
  width: min(100%, 440px);
  padding: 22px 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 12px 30px #0b254512;
}
.manuscript-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.manuscript-top > span {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 700;
}
.manuscript-top > .manuscript-brand {
  margin-left: auto;
  width: 100px;
}
.manuscript-lines {
  display: grid;
  gap: 8px;
  padding: 20px 0;
}
.manuscript-lines i {
  display: block;
  height: 5px;
  background: #dce8f0;
}
.manuscript-lines i:nth-child(2) {
  width: 85%;
  background: #b6daed;
}
.manuscript-lines i:nth-child(3) {
  width: 93%;
}
.manuscript-lines i:nth-child(4) {
  width: 71%;
}
.manuscript-proof {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  font-size: 11px;
  color: var(--muted);
}
.manuscript-proof span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.manuscript-proof .service-mark {
  width: 29px;
  height: 29px;
}
.editing-overview {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 50px;
  align-items: start;
}
.editing-scope > p:first-child {
  margin-bottom: 22px;
}
.editing-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 26px;
}
.editing-feature-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  line-height: 1.75;
}
.editing-feature-list .service-mark {
  width: 41px;
  height: 41px;
}
.editing-scope .editing-boundary {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.editing-order-panel {
  padding: 25px 27px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 6px;
}
.editing-order-panel > .service-mark {
  width: 55px;
  height: 55px;
  margin-bottom: 10px;
}
.editing-order-panel h3 {
  color: var(--accent);
  margin-bottom: 10px;
}
.editing-order-panel p {
  margin: 0 0 20px;
  font-size: 14px;
}
.editing-order-panel .button {
  display: flex;
  margin-bottom: 14px;
}
.editing-order-panel .text-link {
  display: block;
  text-align: center;
}
.editing-overview-premium .editing-feature-list {
  grid-template-columns: 1fr;
}
.editing-overview-premium .editing-feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.editing-overview-premium .editing-feature-list .service-mark {
  width: 52px;
  height: 52px;
}
@media (max-width: 1366px) {
  .editing-overview {
    gap: 30px;
  }
  .editing-feature-list {
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tier-option,
  .timeline-options > label {
    transition: none;
  }
}

/* Client-approved content uses one heading and a lighter service overview. */
html[lang='en'] [data-language-only='zh'],
html[lang='zh-CN'] [data-language-only='en'] {
  display: none !important;
}
.service-catalog-section {
  background-image:
    linear-gradient(110deg, #e4f3fcf5, #f5fafff2), url('../images/manuscript-dark-spread.webp');
  background-size: cover;
  background-position: center;
}
.service-catalog-section .original-service-catalog > a {
  background: #fffffff5;
  border-color: #d9e7f0;
  box-shadow: 0 3px 14px #174c7a07;
}
.service-catalog-section .original-service-catalog h3 {
  color: var(--navy);
}
.service-catalog-section .original-service-catalog p {
  color: var(--muted);
}
.about-hero-copy {
  align-self: start;
  padding-top: 36px;
}
.business-hero .about-wordmark {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  line-height: 1;
}
.about-wordmark .brand-symbol {
  width: 64px;
  height: 64px;
}
.about-wordmark .brand-logo {
  width: clamp(260px, 24vw, 360px);
}
.about-brand-caption {
  margin-top: 12px;
  margin-left: 80px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.guide-pair .turnaround-summary {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 4px 10px;
}
.guide-pair .turnaround-summary > span {
  margin: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
}
.team-carousel {
  overflow: hidden;
}
.team-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 64px) / 5);
  gap: 16px;
  padding: 8px 0;
  overflow-x: auto;
}
.team-carousel[data-team-loop] .team-track {
  overflow: visible;
  will-change: transform;
}
.team-carousel:not([data-team-loop]) [data-team-copy] {
  display: none;
}
.team-track article {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  text-align: center;
  background: #ffffffeb;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.team-track .original-editor-photo {
  width: 80px;
  height: 80px;
  border: 0;
  outline: 0;
  box-shadow: none;
}
.team-track strong {
  font-size: 17px;
  color: var(--navy);
}
.team-track p {
  font-size: 12px;
  line-height: 1.7;
}
.premium-policy-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.85;
}
.payment-methods {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.faq-answer ol {
  margin: 12px 0;
  padding-left: 24px;
}
.service-fixed-price {
  margin-block: 16px;
  font-size: 16px;
}
.service-fixed-price strong {
  color: var(--accent);
  font-size: 32px;
}
.paper-dark .service-fixed-price strong {
  color: #91d8fc;
}
.payment-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 32px;
}
.quote-discount {
  margin-block: 14px;
  padding-block: 12px;
  border-block: 1px solid var(--line);
  font-size: 13px;
}
.quote-discount p {
  color: inherit;
}
.quote-discount del {
  opacity: 0.75;
  margin-left: 8px;
}
.word-count-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.form-field .word-count-header label {
  margin-bottom: 0;
}
.word-count-header button {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--accent);
}
.word-count-header #read-manuscript-count {
  margin: 0;
}
.selected-quote > .quote-final-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
}
.selected-quote > .quote-discount:first-child {
  margin-block: 0;
  padding-block: 0;
  border: 0;
}
.dialog-notice[data-state] {
  padding: 14px 16px;
  border-radius: 6px;
  background: var(--cream);
}
.dialog-notice[data-state='error'] {
  color: #a43131;
  background: #fff2f2;
}
.dialog-notice[data-state='success'] {
  color: #176445;
  background: #edf8f1;
  font-weight: 600;
}
.privacy-policy-container {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  max-width: 1440px;
}
.privacy-policy-sidebar {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 144px);
  overflow-y: auto;
  background: #f6fafe;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 18px;
}
.privacy-policy-toc h2 {
  margin-bottom: 14px;
  font-size: 18px;
}
.privacy-policy-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.privacy-policy-toc li + li {
  margin-top: 4px;
}
.privacy-policy-toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 5px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.6;
}
.privacy-policy-toc a:hover,
.privacy-policy-toc a:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
}
.privacy-toc-number {
  flex: 0 0 20px;
  color: var(--accent);
  font-weight: 600;
}
.privacy-policy-copy {
  min-width: 0;
  max-width: 1000px;
}
.privacy-policy-copy > section {
  /* The shared root already reserves 108px of scroll padding for the fixed header. */
  scroll-margin-top: 12px;
}
.privacy-policy-copy > section + section {
  margin-top: 32px;
}
.privacy-policy-copy h2 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.4;
}
.privacy-policy-copy h3 {
  margin-block: 20px 10px;
  font-size: 18px;
}
.privacy-policy-copy p,
.privacy-policy-copy li {
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.privacy-policy-copy p + p {
  margin-top: 12px;
}
.privacy-policy-copy ul {
  padding-left: 24px;
}
.privacy-policy-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 900px) {
  .privacy-policy-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .privacy-policy-sidebar {
    position: static;
    max-height: none;
  }
}

body[data-page='contact'] .channel-actions > :is(.text-link, span) {
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}
