/* ==========================================================================
   CRAS — Internal pages
   Page hero, breadcrumbs, team grid, forms, timeline, knowledge base, etc.
   ========================================================================== */

/* ---------- Page hero (non-home) ---------- */

.page-hero {
  position: relative;
  background: var(--c-ink);
  color: var(--c-white);
  overflow: hidden;
}

.page-hero-bg { position: absolute; inset: 0; opacity: 0.5; }

.page-hero-inner {
  position: relative;
  padding: 64px 0 56px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: #7E8C9B;
  margin-bottom: 28px;
}
.breadcrumbs a { color: #7E8C9B; transition: color 0.15s ease; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span.sep { color: #4A5560; }
.breadcrumbs span.current { color: #B8C2CC; }

.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--c-white);
  max-width: 760px;
  margin-bottom: 18px;
}

.page-hero .lead {
  font-size: 17px;
  line-height: 1.65;
  color: #B8C2CC;
  max-width: 620px;
}

.page-hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .page-hero-inner { padding: 40px 10px 36px; }
  .page-hero-actions .btn { width: 100%; }
}

/* ---------- Generic content blocks ---------- */

.prose { max-width: 740px; }
.prose p { color: var(--c-grey-700); font-size: 16px; line-height: 1.75; }
.prose p + p { margin-top: 16px; }

.divider { height: 1px; background: var(--c-grey-300); border: none; margin: 0; }

/* ---------- Team grid ---------- */

.team-tier { margin-bottom: 56px; }
.team-tier:last-child { margin-bottom: 0; }

.team-tier-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.team-tier-label .tag-mono { color: var(--c-navy); font-size: 12.5px; }
.team-tier-label::after { content: ''; flex: 1; height: 1px; background: var(--c-grey-300); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  border: 1px solid var(--c-grey-300);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.team-card:hover { border-color: var(--c-navy); transform: translateY(-2px); }

.team-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--c-navy-tint);
  color: var(--c-navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 18px;
}

.team-card h4 { font-size: 16.5px; margin-bottom: 4px; }
.team-card .role { font-size: 13.5px; color: var(--c-red); font-weight: 600; margin-bottom: 2px; }
.team-card .org { font-size: 13.5px; color: var(--c-grey-500); margin-bottom: 14px; }
.team-card .bio { font-size: 14px; color: var(--c-grey-700); line-height: 1.6; }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- Benefit cards (3-col) ---------- */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--c-white);
  border: 1px solid var(--c-grey-300);
  border-radius: var(--radius-md);
  padding: 32px 28px;
}

.benefit-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--c-navy-tint);
  color: var(--c-navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.benefit-icon svg { width: 24px; height: 24px; }

.benefit-card h4 { font-size: 17px; margin-bottom: 10px; }
.benefit-card p { font-size: 14.5px; color: var(--c-grey-700); line-height: 1.65; }

@media (max-width: 900px) {
  .benefit-grid { grid-template-columns: 1fr; }
}

/* ---------- Pricing / membership categories ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-grey-300);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
}

.price-card.is-featured {
  border-color: var(--c-navy);
  box-shadow: var(--shadow-card);
}

.price-featured-tag {
  position: absolute;
  top: -13px; left: 28px;
  background: var(--c-navy);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.price-card .tag-mono { display: block; margin-bottom: 6px; }
.price-card h4 { font-size: 19px; margin-bottom: 14px; }

.price-amount {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 4px;
}
.price-amount small { font-family: var(--f-body); font-size: 14px; font-weight: 500; color: var(--c-grey-500); }

.price-divider { height: 1px; background: var(--c-grey-300); margin: 22px 0; border: none; }

.price-features { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-features li { display: flex; gap: 10px; font-size: 14px; color: var(--c-grey-700); line-height: 1.5; }
.price-features li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--c-navy); }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- Process timeline (4 steps) ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.timeline-step {
  position: relative;
  padding: 0 24px 0 0;
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: 23px; left: calc(100% - 12px);
  width: calc(100% - 0px);
  height: 1px;
  background: var(--c-grey-300);
  display: none;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 23px; right: -12px;
  width: 24px;
  height: 1px;
  background: var(--c-grey-300);
}

.timeline-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--c-navy);
  color: var(--c-navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 20px;
  background: var(--c-white);
  position: relative;
  z-index: 1;
}

.timeline-step h4 { font-size: 16px; margin-bottom: 8px; }
.timeline-step p { font-size: 14px; color: var(--c-grey-700); line-height: 1.6; }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline-step:not(:last-child)::after { display: none; }
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--c-white);
  border: 1px solid var(--c-grey-300);
  border-radius: var(--radius-md);
  padding: 40px;
}

@media (max-width: 600px) {
  .form-card { padding: 26px 20px; }
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-row.single { grid-template-columns: 1fr; }

@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-ink);
}
.field label .opt { font-weight: 400; color: var(--c-grey-500); }

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  font-family: var(--f-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--c-grey-300);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  color: var(--c-ink);
  transition: border-color 0.15s ease;
  width: 100%;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--c-navy);
  outline: none;
}

.field textarea { resize: vertical; min-height: 110px; font-family: var(--f-body); }

.field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2380858C' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
}

.field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 46px;
}

.field input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.85;
  cursor: pointer;
}

.field-toggle-group {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  .field-toggle-group { flex-direction: column; }
}

.toggle-btn {
  flex: 1;
  text-align: center;
  padding: 13px 16px;
  border: 1px solid var(--c-grey-300);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--c-grey-700);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.toggle-btn.is-active { border-color: var(--c-navy); background: var(--c-navy-tint); color: var(--c-navy); }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0 28px;
}
.checkbox-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--c-navy); flex-shrink: 0; }
.checkbox-row label { font-size: 13.5px; color: var(--c-grey-700); line-height: 1.55; }
.checkbox-row a { color: var(--c-navy); font-weight: 600; }

.form-note {
  display: flex;
  gap: 10px;
  background: var(--c-navy-tint);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--c-navy-dark);
  line-height: 1.55;
  margin-bottom: 24px;
}
.form-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* ---------- Two-column page layout (content + sidebar) ---------- */

.page-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .page-split { grid-template-columns: 1fr; }
}

.info-block { margin-bottom: 36px; }
.info-block:last-child { margin-bottom: 0; }

.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-grey-300);
}
.info-row:last-child { border-bottom: none; }

.info-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--c-navy-tint);
  color: var(--c-navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-icon svg { width: 19px; height: 19px; }

.info-row h5 { font-size: 14px; margin-bottom: 4px; color: var(--c-grey-500); font-weight: 600; }
.info-row p { font-size: 15px; color: var(--c-ink); line-height: 1.5; }
.info-row a { color: var(--c-navy); font-weight: 600; }

.legal-box {
  background: var(--c-grey-100);
  border-radius: var(--radius-md);
  padding: 28px;
}
.legal-box h4 { font-size: 15px; margin-bottom: 18px; }
.legal-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--c-grey-300); font-size: 14px; }
.legal-row:last-child { border-bottom: none; }
.legal-row span:first-child { color: var(--c-grey-500); }
.legal-row span:last-child { color: var(--c-ink); font-weight: 600; text-align: right; }

@media (max-width: 600px) {
  .legal-row { flex-direction: column; gap: 6px; }
  .legal-row span:last-child { text-align: left; }
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--c-grey-300);
  height: 420px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Knowledge base: search + filter ---------- */

.kb-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--c-white);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 6px 6px 6px 20px;
  max-width: 640px;
  margin-top: 36px;
}
.kb-search svg { width: 19px; height: 19px; color: var(--c-grey-500); flex-shrink: 0; }
.kb-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--f-body);
  font-size: 15px;
  padding: 12px 0;
  background: transparent;
  color: var(--c-ink);
}
.kb-search input::placeholder { color: var(--c-grey-500); }

@media (max-width: 600px) {
  .kb-search { padding: 8px 12px; }
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-chip {
  padding: 9px 18px;
  border-radius: 20px;
  border: 1px solid var(--c-grey-300);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-grey-700);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-chip.is-active { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.filter-chip:hover:not(.is-active) { border-color: var(--c-navy); color: var(--c-navy); }

.resource-list { display: flex; flex-direction: column; gap: 14px; }

.resource-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background: var(--c-white);
  border: 1px solid var(--c-grey-300);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}
.resource-row:hover { border-color: var(--c-navy); }

.resource-type {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--c-navy-tint);
  color: var(--c-navy);
  display: flex; align-items: center; justify-content: center;
}
.resource-type svg { width: 21px; height: 21px; }

.resource-info { flex: 1; min-width: 0; }
.resource-info h4 { font-size: 15.5px; margin-bottom: 5px; }
.resource-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.resource-meta span { font-family: var(--f-mono); font-size: 12px; color: var(--c-grey-500); }
.resource-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--c-grey-300); }

.access-badge {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.access-badge.public { background: #E7F6EC; color: var(--c-green); }
.access-badge.member { background: #FBF1E2; color: var(--c-gold); }
.access-badge svg { width: 11px; height: 11px; }

@media (max-width: 720px) {
  .resource-row { flex-direction: column; align-items: flex-start; padding: 18px; }
}

/* ---------- World map (international cooperation) ---------- */

.world-map-wrap {
  background: var(--c-white);
  border: 1px solid var(--c-grey-300);
  border-radius: var(--radius-md);
  padding: 40px;
}

.map-legend { display: flex; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
.map-legend-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--c-grey-700); }
.map-legend-dot { width: 10px; height: 10px; border-radius: 2px; }

/* ---------- Generic icon-stat row ---------- */

.icon-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.icon-stat-card {
  padding: 28px;
  border: 1px solid var(--c-grey-300);
  border-radius: var(--radius-md);
}
.icon-stat-card .benefit-icon { margin-bottom: 18px; }
.icon-stat-card h4 { font-size: 16px; margin-bottom: 10px; }
.icon-stat-card p { font-size: 14px; color: var(--c-grey-700); line-height: 1.6; }

@media (max-width: 900px) {
  .icon-stat-grid { grid-template-columns: 1fr; }
}

/* ---------- News feed list (compact) ---------- */

.feed-list { display: flex; flex-direction: column; }
.feed-row {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-grey-300);
}
.feed-row:first-child { padding-top: 0; }
.feed-date { font-family: var(--f-mono); font-size: 12.5px; color: var(--c-grey-500); flex-shrink: 0; width: 100px; }
.feed-row h4 { font-size: 15.5px; font-weight: 600; }

/* ---------- Sticky member CTA (used at bottom of locked content pages) ---------- */

.locked-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #FBF1E2;
  border: 1px solid #EBD6A8;
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.locked-banner svg { width: 24px; height: 24px; color: var(--c-gold); flex-shrink: 0; }
.locked-banner p { font-size: 14.5px; color: #6B5215; }
.locked-banner a { color: var(--c-navy); font-weight: 700; }
