/* Advertise page (page-advertise.php). Built on the site tokens from main.css. */

.isr-adv-breadcrumbs {
  max-width: var(--container-max, 1280px);
  margin-inline: auto;
  padding: 14px var(--container-pad, clamp(16px, 4vw, 48px)) 0;
  font-size: 13px;
  color: var(--gray-light);
}
.isr-adv-breadcrumbs a { color: var(--cyan-dark); text-decoration: none; }
.isr-adv-main { padding-block: 8px 56px; }
.isr-adv-wrap { max-width: 860px; }

.isr-adv-heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold, 800);
  color: var(--slate);
  text-align: center;
  margin: 12px 0 6px;
}
.isr-adv-intro { text-align: center; color: var(--gray-light); margin: 0 auto 20px; max-width: 620px; }

/* Ad type switch */
.isr-adv-types {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin: 0 auto 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.isr-adv-types::-webkit-scrollbar { display: none; }
.isr-adv-type {
  flex: 1 0 auto;
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold, 600);
  color: var(--slate);
  text-decoration: none;
  white-space: nowrap;
}
.isr-adv-type:hover { background: var(--cyan-soft); color: var(--cyan-dark); }
.isr-adv-type.is-active { background: var(--slate); color: var(--white); }
.isr-adv-type:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.isr-adv-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(16px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.isr-adv-lead { margin: 0; font-weight: 600; color: var(--slate); }
.isr-adv-note { margin: 0; font-size: var(--text-sm); color: var(--gray-light); background: var(--bg-warm); border-radius: 8px; padding: 10px 12px; }
.isr-adv-note a { color: var(--cyan-dark); font-weight: 600; }

.isr-adv-set { border: 0; padding: 0; margin: 0; }
.isr-adv-set legend {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold, 700);
  color: var(--slate);
  margin-bottom: 10px;
}
.isr-adv-set legend small, .isr-adv-field small { font-weight: 400; color: var(--gray-light); font-size: 12px; }

.isr-adv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.isr-adv-field {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--slate);
}
.isr-adv-field--full { margin-top: 12px; }
.isr-adv-field .req { color: var(--danger, #DC2626); }
.isr-adv-form .isr-adv-field input,
.isr-adv-form .isr-adv-field select,
.isr-adv-form .isr-adv-field textarea {
  display: block;
  margin-top: 6px;
  font: inherit;
  font-weight: 400;
  font-size: 16px; /* no iOS zoom on focus */
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 46px;
  width: 100%;
}
.isr-adv-field textarea { min-height: 110px; resize: vertical; }
.isr-adv-form .isr-adv-field input:focus,
.isr-adv-form .isr-adv-field select:focus,
.isr-adv-form .isr-adv-field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }

.isr-adv-media { margin-top: 14px; }
.isr-adv-uploads { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.isr-adv-uploads li { background: var(--bg-warm); border-radius: 6px; padding: 5px 10px; }
.isr-adv-uploads li.is-ok { color: #15803D; }
.isr-adv-uploads li.is-error { color: var(--danger, #DC2626); background: #FEF2F2; }

.isr-adv-consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-sm); color: var(--slate); }
.isr-adv-consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }

.isr-adv-error { margin: 0; background: #FEF2F2; color: #B91C1C; border-radius: 8px; padding: 10px 12px; font-size: var(--text-sm); }
.isr-adv-submit { align-self: stretch; min-height: 50px; font-size: 17px; }
.isr-adv-submit:disabled { opacity: 0.65; cursor: default; }

.isr-adv-success {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
}

/* Honeypot: visually hidden but not display:none (some bots skip hidden fields).
   Clipped in place — never pushed off-screen: a large left offset on an RTL
   page widens the scroll area and blanks the phone viewport. */
.isr-adv-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

@media (max-width: 639px) {
  .isr-adv-grid { grid-template-columns: 1fr; }
  .isr-adv-types { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .isr-adv-type { white-space: normal; padding: 9px 6px; font-size: 13px; line-height: 1.3; display: flex; align-items: center; justify-content: center; }
  .isr-adv-heading { font-size: var(--text-xl); }
}

/* Join-us and transparency pages (reuse the advertise page's card + form look) */
.isr-adv-wrap > .isr-adv-form + .isr-adv-form { margin-top: 18px; }
.isr-join-h2 { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: var(--fw-bold, 700); color: var(--slate); margin: 0 0 12px; }
.isr-join-list { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.isr-join-list li { position: relative; padding-inline-start: 18px; line-height: 1.65; color: var(--gray); }
.isr-join-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.isr-transparency p { line-height: 1.7; color: var(--gray); margin: 0 0 10px; }
.isr-tr-table-wrap { overflow-x: auto; margin-bottom: 12px; }
.isr-tr-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.isr-tr-table th, .isr-tr-table td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.isr-tr-table th { color: var(--gray-light); font-weight: 600; white-space: nowrap; }
.isr-tr-dl { margin: 0; }
.isr-tr-dl dt { font-weight: 700; color: var(--slate); margin-top: 12px; }
.isr-tr-dl dd { margin: 4px 0 0; line-height: 1.65; color: var(--gray); }
@media (max-width: 639px) {
  .isr-tr-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .isr-tr-table, .isr-tr-table tbody, .isr-tr-table tr, .isr-tr-table td { display: block; width: 100%; }
  .isr-tr-table tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .isr-tr-table tr:last-child { border-bottom: 0; }
  .isr-tr-table td { border: 0; padding: 3px 0; }
  .isr-tr-table td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--gray-light); }
}
