/* ═══════════════════════════════════════════════════════════════
   Abstract submission
   Built on the shared tokens in design-system.css. The page is a
   two-block form — confirm who you are, then write — so the layout
   states that plainly instead of presenting one long card.
   ═══════════════════════════════════════════════════════════════ */

.apple-container.narrow { max-width: 720px; }

/* ── Page header ──
   A header, not a landing page. The old hero spent a full phone screen
   on a headline before anything actionable appeared. */
.page-head {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-sunk) 100%);
  border-bottom: 1px solid var(--line);
}
.page-head-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 32px;
}
.page-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 10px;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}
.page-lede {
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 10px 0 0;
  max-width: 46ch;
}

/* ── Guidelines disclosure ──
   Native <details>: no script, correct keyboard and screen-reader
   behaviour, and the rules stay one tap away instead of pushing the
   form two screens down. */
.guide-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-cards);
  margin-bottom: 18px;
  overflow: hidden;
}
.guide-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  transition: background-color 180ms var(--ease-out);
}
.guide-card summary::-webkit-details-marker { display: none; }
.guide-card summary:hover { background: var(--surface-sunk); }
.guide-summary-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guide-summary-text strong {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink);
}
.guide-summary-text span {
  font-size: var(--text-caption);
  color: var(--ink-muted);
}
.guide-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ink-subtle);
  transition: transform 260ms var(--ease-out);
}
.guide-card[open] .guide-chevron { transform: rotate(180deg); }
.guide-body {
  padding: 0 18px 18px;
  animation: guideOpen 260ms var(--ease-out);
}
.guide-body ul { margin: 0; padding-left: 18px; }
.guide-body li {
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 7px;
}
.guide-body li:last-child { margin-bottom: 0; }
@keyframes guideOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ── The form sheet ── */
.apple-card.sheet { padding: 0; overflow: hidden; }

.block-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
}
/* .block-num — see the shared step chip in design-system.css. */
.block-head h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.block-head p {
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 3px 0 0;
}

.gate-field { padding: 20px 22px 22px; }
.gate-row { display: flex; gap: 10px; }
.gate-row .apple-input { flex: 1; min-width: 0; }
.gate-row .btn-apple-primary { flex-shrink: 0; padding-inline: 24px; }
#verify-status:not(:empty) { margin-top: 12px; }

/* ── Verify result ── */
.verify-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: var(--text-body-sm);
  line-height: 1.55;
  text-align: left;
}
.verify-status svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.verify-status strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-body-sm);
  font-weight: 700;
  margin-bottom: 2px;
}
.verify-status.is-pending {
  background-color: var(--brand-blue-soft);
  border: 1px dashed var(--brand-blue);
  color: #1f3f96;
}
.verify-status.is-verified {
  background-color: var(--success-soft);
  border: 1px solid var(--success-line);
  color: #0b6b42;
}

#abstract-fields { padding: 0; }
#abstract-fields .form-group { padding: 0 22px; margin-bottom: 20px; }
#abstract-fields .form-group:first-of-type { padding-top: 20px; }

.authors-list { display: flex; flex-direction: column; gap: 10px; }
.author-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-add-author {
  align-self: flex-start;
  margin-top: 10px;
  padding: 8px 16px;
  font-size: var(--text-caption);
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  font-size: var(--text-caption);
  color: var(--ink-subtle);
}
#word-counter.over { color: var(--danger); font-weight: 700; }

.keywords-wrapper { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* ── Upload ── */
.upload-zone {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-cards-sm);
  padding: 24px 18px;
  text-align: center;
  background: var(--surface-sunk);
  cursor: pointer;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
}
.upload-zone svg {
  width: 26px;
  height: 26px;
  color: var(--ink-subtle);
  margin-bottom: 8px;
  transition: transform 240ms var(--ease-out), color 240ms var(--ease-out);
}
.upload-zone:hover svg { transform: translateY(-3px); color: var(--brand-blue); }
.upload-title { font-size: var(--text-body-sm); font-weight: 650; color: var(--ink); }
.upload-hint { font-size: var(--text-caption); color: var(--ink-subtle); margin-top: 3px; }
.upload-preview:not(:empty) {
  margin-top: 10px;
  font-size: var(--text-caption);
  font-weight: 650;
  color: var(--brand-blue);
}

.sheet-actions {
  display: flex;
  justify-content: flex-end;
  padding: 20px 22px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-sunk);
}
.sheet-actions .btn-apple-primary { min-width: 200px; }

.empty-state {
  text-align: center;
  padding: 56px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-cards);
}
.empty-state h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}
.empty-state p {
  font-size: var(--text-body-sm);
  color: var(--ink-muted);
  margin: 0 auto;
  max-width: 42ch;
}

/* ── Phones ── */
@media (max-width: 640px) {
  .page-head-inner { padding: 26px 16px 22px; }
  .page-lede { font-size: var(--text-body-sm); }

  .block-head { padding: 18px 16px 15px; gap: 12px; }
  .gate-field { padding: 16px 16px 18px; }
  #abstract-fields .form-group { padding: 0 16px; }
  .sheet-actions { padding: 16px; }
  .sheet-actions .btn-apple-primary { width: 100%; min-width: 0; }

  /* A 265px input with the button beside it truncated its own placeholder. */
  .gate-row { flex-direction: column; }
  .gate-row .btn-apple-primary { width: 100%; }

  .author-pair { grid-template-columns: 1fr; }
  .guide-card summary { padding: 14px 16px; }
  .guide-body { padding: 0 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-body { animation: none; }
  .guide-chevron,
  .upload-zone svg { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Contact
   Every entry is a tap target: on a phone the point of this page is
   to reach someone, not to read about them.
   ═══════════════════════════════════════════════════════════════ */

.contact-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.contact-primary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.contact-primary:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
}
.contact-icon svg { width: 21px; height: 21px; }
.contact-primary-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-primary-text strong {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.contact-hint { font-size: var(--text-caption); color: var(--ink-muted); line-height: 1.45; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-cards-sm);
  text-decoration: none;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.contact-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  text-decoration: none;
}
.contact-name {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink);
}
.contact-number {
  font-size: var(--text-body-sm);
  font-weight: 650;
  color: var(--brand-blue);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.contact-address {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-cards);
}
.contact-address address {
  font-style: normal;
  font-size: var(--text-body-sm);
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 8px 0 14px;
}
.contact-address address strong {
  font-family: var(--font-display);
  font-size: var(--text-body);
  color: var(--ink);
}
.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-body-sm);
  font-weight: 650;
  color: var(--brand-blue);
  text-decoration: none;
}
.contact-map-link svg { width: 16px; height: 16px; transition: transform 220ms var(--ease-out); }
.contact-map-link:hover { text-decoration: none; }
.contact-map-link:hover svg { transform: translateY(-2px); }

@media (max-width: 640px) {
  .contact-primary { padding: 16px; gap: 13px; }
  .contact-primary-text strong { font-size: var(--text-body-sm); }
  .contact-card { padding: 15px 16px; }
  .contact-address { padding: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-primary:hover,
  .contact-card:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Policy pages
   Same shell as the abstract and contact pages: a page header, a
   narrow column, and one card per numbered clause.
   ═══════════════════════════════════════════════════════════════ */

.policy-card {
  /* Deep-linked from the consent checkbox; clear the sticky nav. */
  scroll-margin-top: 96px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-cards);
  padding: 26px 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}
.policy-card:last-child { margin-bottom: 0; }

.policy-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
/* .policy-num — see the shared step chip in design-system.css. */
.policy-head h2 {
  scroll-margin-top: 100px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.policy-sub {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 8px;
}
.policy-card > .policy-sub:first-of-type { margin-top: 0; }

.policy-lede {
  font-size: var(--text-body-sm);
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 12px;
}
.policy-lede a { color: var(--brand-blue); font-weight: 600; }

.policy-list {
  margin: 0 0 4px;
  padding-left: 18px;
  list-style: none;
}
.policy-list li {
  position: relative;
  font-size: var(--text-body-sm);
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 9px;
}
.policy-list li::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--brand-gold);
}
.policy-list li:last-child { margin-bottom: 0; }
.policy-list strong { color: var(--ink); font-weight: 650; }

.policy-note {
  margin: 18px 0 4px;
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 3px solid var(--brand-blue);
  background-color: var(--brand-blue-soft);
  font-size: var(--text-caption);
  line-height: 1.6;
  color: #1f3f96;
}
.policy-note strong { font-weight: 700; }

.policy-address {
  font-style: normal;
  font-size: var(--text-body-sm);
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0 0 12px;
}
.policy-address strong {
  font-family: var(--font-display);
  font-size: var(--text-body);
  color: var(--ink);
}

/* ── Cancellation schedule ── */
.policy-table-wrap { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 4px; }
.policy-table { width: 100%; border-collapse: collapse; font-size: var(--text-body-sm); }
.policy-table th,
.policy-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
  border-bottom: 1px solid var(--line);
}
.policy-table thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  background-color: var(--surface-sunk);
}
.policy-table tbody th { font-weight: 650; color: var(--ink); width: 48%; }
.policy-table tbody td { color: var(--ink-muted); }
.policy-table tbody tr:last-child th,
.policy-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 640px) {
  .policy-card { padding: 20px 18px; border-radius: var(--radius-cards-sm); }
  .policy-head { gap: 10px; padding-bottom: 13px; margin-bottom: 15px; }
  .policy-head h2 { font-size: 17px; }

  /* Two columns of dates and charges do not fit; each row becomes a pair. */
  .policy-table,
  .policy-table tbody,
  .policy-table tr,
  .policy-table th,
  .policy-table td { display: block; width: auto; }
  .policy-table thead { display: none; }
  .policy-table tbody tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .policy-table tbody tr:last-child { border-bottom: none; }
  .policy-table tbody th { padding: 0 0 3px; border: none; width: auto; }
  .policy-table tbody td { padding: 0; border: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Abstract submitted
   Was built from inline hex (#10B981, #065F46, #2563EB) and the old
   .btn classes, so it looked like a different site from the form
   that produced it.
   ═══════════════════════════════════════════════════════════════ */

.abs-success {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 30px;
  text-align: center;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-sm);
  animation: guideOpen 420ms var(--ease-out) both;
}

.abs-success-check {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: var(--success);
  color: #fff;
  box-shadow: 0 0 0 8px var(--success-soft);
}
.abs-success-check svg { width: 28px; height: 28px; }

.abs-success h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
}
.abs-success-sub {
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 auto 24px;
  max-width: 44ch;
}

.abs-success-note {
  padding: 16px 18px;
  margin-bottom: 24px;
  text-align: left;
  border-radius: 12px;
  border-left: 3px solid var(--brand-blue);
  background-color: var(--brand-blue-soft);
}
.abs-success-note h3 {
  font-family: var(--font-display);
  font-size: var(--text-body-sm);
  font-weight: 700;
  color: #1f3f96;
  margin: 0 0 4px;
}
.abs-success-note p {
  font-size: var(--text-caption);
  line-height: 1.55;
  color: #1f3f96;
  margin: 0;
}

.abs-success-actions { display: flex; flex-direction: column; gap: 10px; }
.abs-success-actions > * { width: 100%; justify-content: center; }

@media (max-width: 640px) {
  .abs-success { padding: 30px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .abs-success { animation: none; }
}
