/*
 * The Author Central | genre landing hero palette | v1
 * Matches the HOME banner's beige/gold palette from new-style.css.
 * Scoped to the 37 new writing pages; never changes the homepage or other sections.
 */

/* :is() includes IDs to override each legacy page-specific selector consistently. */
main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero {
  background: linear-gradient(135deg, #f8f6f2 0%, #fdf9f0 52%, #f4f4f4 100%) !important;
  color: #1a1a1a !important;
  isolation: isolate;
}

/* The subtle square grid is identical to the homepage hero grid. */
main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.07) 1px, transparent 1px) !important;
  background-size: 80px 80px !important;
  background-color: transparent !important;
  pointer-events: none;
  z-index: 0;
}

/* Remove the dark-page glow; a warm glow keeps the homepage treatment. */
main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero::after {
  background: radial-gradient(circle, rgba(201, 168, 76, 0.085) 0%, transparent 72%) !important;
  pointer-events: none;
  z-index: 0;
}

main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero .hero-inner {
  position: relative;
  z-index: 1;
}

/* The page originals use white text, which is invisible on the light palette. */
main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero .hero-left h1 {
  color: #1a1a1a !important;
}

main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero .hero-left h1 span {
  color: #c9a84c !important;
}

main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero .hero-left > p {
  color: #555555 !important;
}

main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero .hero-what h3 {
  color: #6c5b3b !important;
}

main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero .hero-what li {
  color: #424242 !important;
  border-bottom-color: rgba(175, 150, 98, 0.24) !important;
}

main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero .hero-what li::before {
  color: #bc932a !important;
}

/* Match the homepage's white lead form and warm gold borders. */
main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero .form-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(201, 168, 76, 0.30) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08) !important;
  color: #1a1a1a !important;
}

main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero .form-card :is(h2,h3,h4) {
  color: #1a1a1a !important;
}

main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero .form-card > p,
main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero .form-card label {
  color: #626262 !important;
}

main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero .form-card .fg :is(input, textarea, select) {
  background: #fbf9f5 !important;
  border: 1px solid #e5d9bd !important;
  color: #252525 !important;
  caret-color: #c9a84c;
}

main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero .form-card .fg :is(input, textarea)::placeholder {
  color: #757575 !important;
  opacity: 1;
}

main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero .form-card .fg :is(input, textarea, select):focus {
  border-color: #c9a84c !important;
  outline: 2px solid rgba(201, 168, 76, 0.20) !important;
}

/* Make the light cards readable even if the original form has muted helper text. */
main:is(#tac-adventure, #tac-children, .tac-genre-landing, .tac-fiction-landing,
        .tac-nonfiction-landing, .tac-specialist-landing, .tac-growth-landing,
        .tac-stories-landing) > section.hero .form-card .form-note {
  color: #686868 !important;
}
