/* ============================================================
   ICR For Authors
   Uses ICR Enchanted's colors/fonts when that plugin is active,
   with matching fallbacks when it isn't.
   ============================================================ */

.icr-authors,
.icr-authors-formwrap {
  --_accent:   var(--icr-accent, #c8703a);
  --_accent-d: var(--icr-accent-dark, #9e4e1f);
  --_accent-l: var(--icr-accent-light, #e8956a);
  --_card:     var(--icr-bg-alt, #f2ebe0);
  --_text:     var(--icr-text, #2a1f14);
  --_muted:    var(--icr-text-muted, #6b5844);
  --_border:   var(--icr-border, #ddd0bb);
  --_head:     var(--icr-font-heading, 'Playfair Display', Georgia, serif);
  --_accentf:  var(--icr-font-accent, 'Special Elite', 'Courier New', monospace);
  --_body:     var(--icr-font-body, Georgia, serif);
}

.icr-authors { margin: 1.5rem 0 3rem; }
.icr-authors section { margin-bottom: 2.75rem; }

.icr-authors-h2 {
  font-family: var(--_head) !important;
  font-style: italic;
  font-size: 1.45rem !important;
  color: var(--_text) !important;
  margin: 0 0 1.1rem !important;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--_border);
  position: relative;
}
.icr-authors-h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 3px;
  background: var(--_accent);
}

/* ---------- Hero ---------- */
.icr-authors-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 2.5rem;
  border-radius: 3px;
  color: #e8dcc8;
  background: linear-gradient(135deg, #2a1f14 0%, #3d2a18 45%, #1e1409 100%);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}
.icr-authors-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(255, 255, 255, 0.015) 2px, rgba(255, 255, 255, 0.015) 4px);
  pointer-events: none;
}
.icr-authors-hero::after {
  content: '\201C';
  position: absolute;
  top: -0.2em;
  right: 0.3em;
  font-family: var(--_head);
  font-size: 14rem;
  line-height: 1;
  color: rgba(200, 112, 58, 0.12);
  pointer-events: none;
}
.icr-authors-hero > * { position: relative; z-index: 1; }

.icr-authors-hero__eyebrow {
  font-family: var(--_accentf);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--_accent-l);
  margin-bottom: 0.7rem;
}
.icr-authors-hero__title {
  font-family: var(--_head) !important;
  font-size: clamp(1.8rem, 4.5vw, 2.7rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #f0e6d0 !important;
  margin: 0 0 1rem !important;
}
.icr-authors-hero__lead {
  font-family: var(--_body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #c8b8a0;
  max-width: 640px;
  margin: 0 0 1.5rem;
}
.icr-authors-hero__cta,
.icr-authors-hero__cta:visited {
  display: inline-block;
  background: var(--_accent) !important;
  color: #fff !important;
  font-family: var(--_accentf);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7em 1.5em;
  border-radius: 3px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.25s ease, transform 0.25s ease;
}
.icr-authors-hero__cta:hover {
  background: var(--_accent-d) !important;
  transform: translateY(-1px);
}

/* ---------- Steps ---------- */
.icr-authors-steps {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.icr-authors-steps li {
  position: relative;
  background: var(--_card);
  border: 1px solid var(--_border);
  border-bottom: 3px solid var(--_accent);
  border-radius: 3px;
  padding: 1.5rem 1.25rem 1.25rem;
  margin: 0 !important;
  box-shadow: 0 2px 10px rgba(42, 31, 20, 0.08);
}
.icr-authors-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--_accent);
  color: #fff;
  font-family: var(--_head);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.icr-authors-steps h3 {
  font-family: var(--_head) !important;
  font-size: 1.1rem !important;
  color: var(--_text) !important;
  margin: 0 0 0.4rem !important;
}
.icr-authors-steps p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--_muted);
  margin: 0 !important;
}

/* ---------- Two columns ---------- */
.icr-authors-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.icr-authors-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.icr-authors-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.4rem !important;
  margin: 0 !important;
  line-height: 1.6;
  color: var(--_text);
}
.icr-authors-list li::before {
  content: '\2756';
  position: absolute;
  left: 0;
  top: 0.4rem;
  font-size: 0.8rem;
  color: var(--_accent);
}

/* ---------- FAQ ---------- */
.icr-authors-faq details {
  border: 1px solid var(--_border);
  border-radius: 3px;
  background: var(--_card);
  margin-bottom: 0.6rem;
}
.icr-authors-faq summary {
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  font-family: var(--_head);
  font-weight: 700;
  color: var(--_text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.icr-authors-faq summary::-webkit-details-marker { display: none; }
.icr-authors-faq summary::after {
  content: '+';
  font-family: var(--_accentf);
  font-size: 1.3rem;
  color: var(--_accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.icr-authors-faq details[open] summary::after { transform: rotate(45deg); }
.icr-authors-faq details[open] summary { border-bottom: 1px dotted var(--_border); }
.icr-authors-faq details p {
  margin: 0 !important;
  padding: 0.85rem 1.1rem 1rem;
  color: var(--_muted);
  line-height: 1.65;
}

/* ---------- Form ---------- */
.icr-authors-formwrap { margin: 1.5rem 0 3rem; }

.icr-authors-form {
  background: var(--_card);
  border: 1px solid var(--_border);
  border-left: 4px solid var(--_accent);
  border-radius: 3px;
  padding: 1.75rem 1.75rem 1.25rem;
  box-shadow: 0 2px 12px rgba(42, 31, 20, 0.08);
}
.icr-authors-form p { margin: 0 0 1.1rem; }
.icr-authors-form label {
  display: block;
  font-family: var(--_accentf);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--_muted);
  margin-bottom: 0.35rem;
}
.icr-authors-form .req { color: var(--_accent); }

.icr-authors-form input[type="text"],
.icr-authors-form input[type="email"],
.icr-authors-form input[type="url"],
.icr-authors-form select,
.icr-authors-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6em 0.8em;
  font-family: var(--_body);
  font-size: 1rem;
  color: var(--_text);
  background: #fff;
  border: 1px solid var(--_border);
  border-radius: 3px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.icr-authors-form input:focus,
.icr-authors-form select:focus,
.icr-authors-form textarea:focus {
  outline: none;
  border-color: var(--_accent);
  box-shadow: 0 0 0 3px rgba(200, 112, 58, 0.2);
}
.icr-authors-form textarea { resize: vertical; }

.icr-authors-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
}

.icr-authors-checks {
  border: 0;
  padding: 0;
  margin: 0 0 1.1rem;
}
.icr-authors-checks legend {
  font-family: var(--_accentf);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--_muted);
  padding: 0;
  margin-bottom: 0.4rem;
}
.icr-authors-checks label,
.icr-authors-check label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 1.25rem 0.3rem 0;
  font-family: var(--_body);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--_text);
}
.icr-authors-check label { display: flex; margin-right: 0; }
.icr-authors-checks input,
.icr-authors-check input { margin-top: 0.3em; accent-color: var(--_accent); }

/* Honeypot: off-screen for people, still "visible" to bots */
.icr-authors-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.icr-authors-submit button {
  background: var(--_accent);
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 0.8em 1.8em;
  font-family: var(--_accentf);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: background 0.25s ease, transform 0.25s ease;
}
.icr-authors-submit button:hover {
  background: var(--_accent-d);
  transform: translateY(-1px);
}
.icr-authors-fine {
  font-size: 0.8rem;
  color: var(--_muted);
  margin: 0 !important;
}

/* ---------- Notices ---------- */
.icr-authors-notice {
  padding: 1rem 1.25rem;
  border-radius: 3px;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.icr-authors-notice--ok {
  background: #eef4e6;
  border: 1px solid #b9cf9c;
  border-left: 4px solid #6b8f3a;
  color: #2f4217;
}
.icr-authors-notice--err {
  background: #fbebe6;
  border: 1px solid #e3b2a3;
  border-left: 4px solid #b5432a;
  color: #6a2412;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .icr-authors-steps { grid-template-columns: minmax(0, 1fr); }
  .icr-authors-cols  { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
}
@media (max-width: 600px) {
  .icr-authors-hero { padding: 2rem 1.5rem; }
  .icr-authors-hero::after { font-size: 8rem; }
  .icr-authors-row { grid-template-columns: minmax(0, 1fr); }
  .icr-authors-form { padding: 1.25rem 1.1rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .icr-authors-hero__cta,
  .icr-authors-submit button,
  .icr-authors-faq summary::after { transition: none; }
}
