/*
  Dracor Consulting Version 1.1
  Creative Manuscript & Author Services page
  Loaded only by /creative-manuscript-services/.
*/

.author-page {
  --author-rule: rgba(var(--color-highlight-rgb), 0.3);
  --author-surface: linear-gradient(145deg, rgba(var(--color-highlight-rgb), 0.075), rgba(255, 255, 255, 0.025));
}

.author-page .section[id],
.author-page article[id],
.author-page div[id] {
  scroll-margin-top: calc(var(--header-height) + var(--space-4));
}

.author-hero {
  min-height: clamp(34rem, 78svh, 48rem);
  padding-block: calc(var(--header-height) + var(--space-8)) var(--space-9);
}

.author-hero::before {
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.96) 0%, rgba(5, 7, 10, 0.82) 55%, rgba(5, 7, 10, 0.68) 100%),
    radial-gradient(circle at 82% 18%, rgba(var(--color-highlight-rgb), 0.18), transparent 28%);
}

.author-hero-layout {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  position: relative;
  z-index: var(--z-raised);
}

.author-hero-copy {
  max-width: 48rem;
}

.author-hero-copy .hero-title {
  max-width: 13ch;
}

.author-hero-copy .page-hero-subtitle {
  margin-inline: 0;
  max-width: 46rem;
}

.author-hero-copy .hero-actions {
  justify-content: flex-start;
}

.author-hero-note {
  background: rgba(10, 15, 24, 0.8);
  border: 1px solid var(--author-rule);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-large);
  display: grid;
  gap: var(--space-5);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.author-hero-note::before {
  background: var(--gradient-waterfall-line);
  content: "";
  height: 1px;
  width: 100%;
}

.author-hero-note h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.author-hero-note p {
  color: var(--color-text-secondary);
  margin: 0;
}

.author-stage-list {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.author-stage-list li {
  align-items: center;
  color: var(--color-text-secondary);
  display: flex;
  gap: var(--space-3);
}

.author-stage-list li::before {
  background: var(--color-highlight);
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 5px rgba(var(--color-highlight-rgb), 0.1);
  content: "";
  flex: 0 0 0.45rem;
  height: 0.45rem;
  width: 0.45rem;
}

.author-intro-grid,
.author-audience-grid,
.author-scope-grid {
  align-items: start;
  display: grid;
  gap: var(--grid-gap-roomy);
}

.author-profile {
  background: var(--author-surface);
  border-left: 3px solid var(--color-highlight);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.author-profile p:last-child {
  margin-bottom: 0;
}

.author-role {
  color: var(--color-glacier);
  font-family: var(--font-accent);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.author-services-grid {
  display: grid;
  gap: var(--grid-gap-standard);
  grid-template-columns: 1fr;
}

.author-service-card {
  background: var(--gradient-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: var(--card-padding);
  position: relative;
}

.author-service-card::after {
  background: var(--gradient-waterfall-line);
  bottom: 0;
  content: "";
  height: 1px;
  inset-inline: var(--space-5);
  opacity: 0.5;
  position: absolute;
}

.author-service-number {
  color: var(--color-highlight);
  font-family: var(--font-mono);
  font-size: var(--font-size-caption);
  letter-spacing: var(--letter-spacing-wider);
  margin-bottom: var(--space-5);
}

.author-service-card h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin-bottom: var(--space-3);
}

.author-service-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
}

.author-deliverable {
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--font-size-caption);
  margin-top: auto;
  padding-top: var(--space-4);
}

.author-deliverable strong {
  color: var(--color-text-secondary);
}

.author-comparison-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.author-comparison-header {
  align-items: start;
  display: block;
}

.author-comparison-header .lead {
  margin-top: var(--space-4);
}

.author-comparison {
  border-collapse: collapse;
  min-width: 52rem;
  width: 100%;
}

.author-comparison caption {
  background: rgba(var(--color-highlight-rgb), 0.08);
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
  padding: var(--space-4) var(--space-5);
  text-align: left;
}

.author-comparison th,
.author-comparison td {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-5);
  text-align: left;
  vertical-align: top;
}

.author-comparison th {
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-small);
}

.author-comparison tbody th {
  color: var(--color-glacier);
  min-width: 10rem;
}

.author-comparison td {
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
}

.author-comparison tr:last-child th,
.author-comparison tr:last-child td {
  border-bottom: 0;
}

.author-availability-note {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  margin-top: var(--space-5);
  padding: var(--space-5);
}

.author-fit-list,
.author-receive-list {
  display: grid;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.author-fit-list li,
.author-receive-list li {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  padding: var(--space-5);
}

.author-fit-list strong,
.author-receive-list strong {
  color: var(--color-text);
  display: block;
  margin-bottom: var(--space-2);
}

.author-process {
  counter-reset: author-process;
  display: grid;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.author-process li {
  counter-increment: author-process;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 3.25rem minmax(0, 1fr);
}

.author-process li::before {
  align-items: center;
  background: rgba(var(--color-highlight-rgb), 0.11);
  border: 1px solid var(--author-rule);
  border-radius: var(--radius-full);
  color: var(--color-glacier);
  content: counter(author-process, decimal-leading-zero);
  display: flex;
  font-family: var(--font-mono);
  height: 3.25rem;
  justify-content: center;
  width: 3.25rem;
}

.author-process h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-bottom: var(--space-2);
}

.author-process p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
  margin: 0;
}

.author-quote-panel {
  background:
    radial-gradient(circle at 85% 20%, rgba(var(--color-highlight-rgb), 0.17), transparent 28%),
    var(--gradient-surface);
  border: 1px solid var(--author-rule);
  border-radius: var(--radius-2xl);
  padding: var(--callout-padding);
}

.author-quote-factors {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
}

.author-quote-factors li {
  border-left: 2px solid var(--color-highlight);
  color: var(--color-text-secondary);
  padding-left: var(--space-3);
}

.author-scope-panel {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.author-scope-panel h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin-bottom: var(--space-4);
}

.author-scope-panel p,
.author-scope-panel li {
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
}

.author-scope-panel ul {
  display: grid;
  gap: var(--space-2);
  margin-bottom: 0;
}

.author-faq-list {
  border-top: 1px solid var(--color-border);
}

.author-faq-list details {
  border-bottom: 1px solid var(--color-border);
}

.author-faq-list summary {
  align-items: center;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  font-family: var(--font-secondary);
  font-size: clamp(1.05rem, 2.3vw, 1.3rem);
  font-weight: var(--font-weight-semibold);
  gap: var(--space-4);
  justify-content: space-between;
  list-style: none;
  min-height: 4rem;
  padding-block: var(--space-4);
}

.author-faq-list summary::-webkit-details-marker {
  display: none;
}

.author-faq-list summary::after {
  color: var(--color-highlight);
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1.5rem;
}

.author-faq-list details[open] summary::after {
  content: "−";
}

.author-faq-list details > div {
  color: var(--color-text-secondary);
  max-width: 68ch;
  padding: 0 0 var(--space-5);
}

.author-related-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-6);
}

.author-related-links a {
  min-height: var(--interaction-target);
}

@media (min-width: 48rem) {
  .author-hero-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  }

  .author-intro-grid,
  .author-audience-grid,
  .author-scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .author-services-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .author-services-grid .author-service-card {
    grid-column: span 2;
  }

  .author-services-grid .author-service-card:nth-child(7) {
    grid-column: 2 / span 2;
  }
}

@media (max-width: 47.9375rem) {
  .author-hero {
    padding-block: calc(var(--header-height) + var(--space-7)) var(--space-7);
  }

  .author-hero-copy .button,
  .author-final-cta .button {
    width: 100%;
  }

  .author-quote-factors {
    grid-template-columns: 1fr;
  }

  .author-process li {
    grid-template-columns: 2.75rem minmax(0, 1fr);
  }

  .author-process li::before {
    height: 2.75rem;
    width: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .author-faq-list summary,
  .author-comparison-wrap {
    scroll-behavior: auto;
  }
}

@media print {
  .author-hero-note,
  .author-service-card,
  .author-profile,
  .author-quote-panel,
  .author-scope-panel {
    background: #fff !important;
    border: 1px solid #777 !important;
    box-shadow: none !important;
    break-inside: avoid;
    color: #111 !important;
  }

  .author-comparison-wrap {
    overflow: visible;
  }

  .author-comparison {
    min-width: 0;
  }
}
