/* paymentsHub.css — mobile-first responsive design */

/* ================================
   PAYMENTS HUB — Base Styles
   ================================ */

/* Section container */
.section-one {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 2rem 1rem;
}

/* Section tab */
.section-one .section-tab {
  display: inline-block;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================================
   HERO INTRODUCTION
   ================================ */

.hub-intro {
  width: 100%;
  margin-bottom: 3rem;
}

.hub-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink, #434343);
  text-align: center;
  font-family: "Roboto", sans-serif;
  margin: 0;
}

/* ================================
   CHOOSE YOUR ENTRY POINT
   ================================ */

.entry-point-container {
  width: 100%;
  margin-bottom: 4rem;
}

.entry-point-title {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  font-family: "Arsenal SC", sans-serif;
  font-weight: 400;
  color: var(--ink, #434343);
}

.entry-point-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.entry-point-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1.25rem 1.5rem;
  border-radius: 12px;

  border: 1px solid rgba(0,0,0,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(234,232,227,0.85));

  text-decoration: none;
  color: var(--ink, #434343);

  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* subtle editorial accent rail */
.entry-point-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 6px;
  background: rgba(242, 192, 120, 0.9); /* warm accent */
  opacity: 0.55;
}

/* hover: lift + sharper shadow */
.entry-point-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,0,0,0.16);
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
}

/* focus: keyboard polish without breaking your global focus rules */
.entry-point-card:focus-visible {
  outline: 2px solid #434343; /* matches your existing focus color */
  outline-offset: 3px;
}

.entry-point-label {
  font-family: "Roboto", sans-serif;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: 0.2px;
}

.entry-point-time {
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  color: rgba(67, 67, 67, 0.70);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

/* Phase 1.5: selected / active entry card */
.entry-point-card.is-active {
  border-color: rgba(242, 192, 120, 0.95);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.12),
    0 0 0 2px rgba(242, 192, 120, 0.28);
  transform: translateY(-1px);
}

.entry-point-card.is-active::before {
  opacity: 1;
}

/* Optional: slightly “inkier” title when active */
.entry-point-card.is-active .entry-point-label {
  color: #2f3437;
}

/* Optional: a subtle cue on the right meta line */
.entry-point-card.is-active .entry-point-time {
  color: rgba(67, 67, 67, 0.85);
  font-weight: 600;
}


/* ================================
   HUB SECTIONS (General)
   ================================ */

.hub-section {
  width: 100%;
  margin-bottom: 4rem;
}

.hub-section-title {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  font-family: "Arsenal SC", sans-serif;
  font-weight: 400;
  color: var(--ink, #434343);
}

/* ================================
   STANDARDS & SPECIFICATIONS
   ================================ */

.standards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;  /* Ensure full width usage */
}

.standards-card {
  padding: 1.5rem;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  background: #eae8e3;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.standards-card-title {
  font-size: 1.1rem;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 1rem;  /* Space between title and line */
  border-bottom: 1px solid #d4d4d4;  /* Separator line */
  color: var(--ink, #434343);
}

.standards-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

.standards-list li {
  margin-bottom: 0.75rem;
}

.standards-list a {
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  color: var(--ink, #434343);
  text-decoration: none;
  transition: color 0.2s ease;
}

.standards-list a:hover {
  color: #757575;
}

.standards-note {
  font-family: "Roboto", sans-serif;
  font-size: 0.85rem;
  color: #757575;
  font-style: italic;
  margin: 0;
}

/* ---- Option 1: Knowledge Capsule styling ---- */

.standards-kicker {
  font-family: "Roboto", sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(67, 67, 67, 0.78);
  margin: 0 0 1rem 0;
}

.standards-capsule {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 1rem 1rem 0.9rem 1rem;
}

.standards-capsule-title {
  font-family: "Arsenal SC", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: rgba(67, 67, 67, 0.70);
  margin: 0 0 0.75rem 0;
}

.standards-links {
  list-style: none;
  padding: 0;
  margin: 0 0 0.6rem 0;
}

.standards-links li {
  margin-bottom: 0.7rem;
}

/* Reuse your existing link styling feel, but give it a bit more "buttonless" structure */
.standards-links a {
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  color: var(--ink, #434343);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.standards-links a:hover {
  color: #434343;
  transform: translateX(1px);
}

/* Keep your existing note style but ensure it sits nicely inside capsule */
.standards-capsule .standards-note {
  margin-top: 0.25rem;
}


/* ================================
   WALLET ECOSYSTEM
   ================================ */

.wallet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.wallet-column {
  padding: 0;
}

.wallet-column-title {
  font-size: 1.1rem;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ink, #434343);
}

.wallet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wallet-list li {
  margin-bottom: 0.75rem;
}

.wallet-list a {
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  color: var(--ink, #434343);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wallet-list a:hover {
  color: #434343;
}

.wallet-coming-soon {
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  color: #757575;
  font-style: italic;
  margin: 0;
}

/* ================================
   REGULATORY LANDSCAPE
   ================================ */

.regulatory-search-container {
  width: 100%;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  background: #eae8e3;
  padding: 1.5rem;
}

.search-header {
  margin-bottom: 1.5rem;
}

.search-title {
  font-size: 1.1rem;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  margin: 0;
  color: var(--ink, #434343);
}

.search-interface {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-input,
.search-filter {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  color: var(--ink, #434343);
  background: #eae8e3;
  cursor: not-allowed;
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-results-preview {
  padding: 1rem;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.search-preview-label {
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  margin: 0 0 0.75rem 0;
  color: #757575;
}

.search-preview-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-preview-list li {
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  color: #757575;
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.search-preview-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #9ca3af;
}

.search-preview-list li:last-child {
  margin-bottom: 0;
}

/* ================================
   ARTICLES & DEEP DIVES
   ================================ */

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  background: #eae8e3;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink, #434343);
  transition: all 0.2s ease;
}

.article-card:hover {
  border-color: #4d555b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article-card-placeholder {
  opacity: 0.6;
  cursor: default;
}

.article-card-placeholder:hover {
  border-color: #d4d4d4;
  transform: none;
  box-shadow: none;
}

.article-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  font-size: 3rem;
}

.article-content {
  padding: 1.5rem;
}

.article-title {
  font-size: 1.2rem;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--ink, #434343);
}

.article-description {
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #757575;
  margin: 0 0 1rem 0;
}

.article-link {
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ================================
   TABLET BREAKPOINT (768px+)
   ================================ */

@media (min-width: 768px) {
  .section-one {
    padding: 3rem 1.25rem;
  }

  .hub-description {
    font-size: 1.2rem;
  }

  .entry-point-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .standards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 100%;  /* Full width */
  }

  .wallet-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .search-input-group {
    flex-direction: row;
    gap: 1rem;
  }

  .search-input {
    flex: 1;
  }

  .search-filter {
    width: auto;
    min-width: 150px;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* ================================
   DESKTOP BREAKPOINT (1024px+)
   ================================ */

@media (min-width: 1024px) {
  .section-one {
    padding: 4rem 1.5rem;
  }

  .section-one .section-tab {
    margin-bottom: 2rem;
  }

  .hub-intro {
    margin-bottom: 4rem;
  }

  .hub-description {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
  }

  .entry-point-container {
    margin-bottom: 5rem;
  }

  .entry-point-title {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }

  .entry-point-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .entry-point-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem;
     min-height: 92px;
  }

  .entry-point-card::before {
  top: 12px;
  bottom: 12px;
}
  .entry-point-label {
    font-size: 1.05rem;
  }

  .hub-section {
    margin-bottom: 5rem;
  }

  .hub-section-title {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
  }

  .regulatory-search-container {
    max-width: 800px;
    padding: 2rem;
  }
}

/* ================================
   LARGE DESKTOP (1280px+)
   ================================ */

@media (min-width: 1280px) {
  .standards-grid,
  .wallet-grid,
  .articles-grid {
    max-width: 1200px;
  }
}

/* ================================
   AGGRESSIVE OUTLINE REMOVAL
   ================================ */

/* Remove ALL outlines from fieldsets and their parents */
fieldset,
fieldset:focus,
fieldset:target,
fieldset:focus-visible,
fieldset.contact-form-group,
fieldset.payment-flow-group,
.contact-form-group,
.payment-flow-group,
.hub-section,
div[id="standards"],
div[id="wallets"],
div[id="regulatory"],
div[id="articles"] {
  outline: none !important;
  box-shadow: none !important;
}

/* Remove from all interactive elements */
*:focus,
*:target {
  outline: none !important;
}

/* Keep accessibility for keyboard users on links/buttons only */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #4BA3AD;
  outline-offset: 2px;
}

/* Ensure fieldsets use full width */
.contact-form-group.payment-flow-group {
  width: 100%;
}

/* Force fieldsets to use full available width */
.payment-flow-group {
  width: 100%;
  max-width: 100%;
}

.payment-flow-group .standards-grid {
  width: 100%;
  max-width: 100%;
}

/* Add colored top borders */
.standards-card:nth-child(1) {
  border-top: 4px solid #9eb5bd;  /* ISO */
}

.standards-card:nth-child(2) {
  border-top: 4px solid #f0c27e;  /* EMVCo  */
}

.standards-card:nth-child(3) {
  border-top: 4px solid #3f545e;  /* Payment Networks */
}

/* --- Option A: citation dots for standards lists --- */
.standards-links li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.standards-links li::before {
  content: "•";
  color: rgba(67,67,67,0.55);
  line-height: 1;
  transform: translateY(-1px);
}

/* --- Option B: networks behave like external references (hover glyph) --- */

/* Remove citation dots for Networks only */
.standards-card--networks .standards-links li::before {
  content: "";
  display: none;
}

/* Add subtle external-reference glyph on hover */
.standards-card--networks .standards-links a::after {
  content: "⧉";
  font-size: 0.75rem;
  margin-left: 0.35rem;
  opacity: 0;
  transform: translateY(-1px);
  transition: opacity 0.15s ease;
}

.standards-card--networks .standards-links a:hover::after {
  opacity: 0.6;
}

/* =========================================
   Reference-style links (ISO / EMVCo)
   Borrowed from .atg__also-live-link
   ========================================= */

.ph-ref-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.ph-ref-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.25s ease;
}

.ph-ref-link:hover::after,
.ph-ref-link:focus-visible::after {
  width: 100%;
}

.ph-cta-link {
  text-decoration: none;
  color: inherit;
}

.ph-cta-link span.arrow {
  opacity: 0;
  margin-left: 4px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ph-cta-link:hover span.arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* =========================================================
   Phase 2: Editorial card header + badges
   ========================================================= */

.standards-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.25rem;
}

.ph-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.ph-badge {
  font-family: "Arsenal SC", "Arsenal", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  padding: 6px 8px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(77, 85, 91, 0.16);
  color: rgba(77, 85, 91, 0.86);
}

/* slightly different “flavors” (subtle, not colorful) */
.ph-badge--iso {
  border-color: rgba(158, 181, 190, 0.55);
}

.ph-badge--emv {
  border-color: rgba(242, 192, 120, 0.65);
}

.ph-badge--scheme {
  border-color: rgba(77, 85, 91, 0.28);
}

/* Better rhythm for reference lists */
.standards-links li {
  padding: 6px 0;
}

/* subtle separator (skip the last) */
.standards-links li:not(:last-child) {
  border-bottom: 1px solid rgba(77, 85, 91, 0.08);
}

/* Networks: directory layout */
.standards-card--networks .standards-links {
  columns: 2;
  column-gap: 28px;
}

.standards-card--networks .standards-links li {
  break-inside: avoid;
  border-bottom: 0; /* keep it clean for directory */
  padding: 8px 0;
}

/* Optional: slightly stronger hover cue for schemes */
.standards-card--networks .standards-links a:hover {
  color: #4BA3AD;
}

.standards-section .standards-card:first-child {
  border-top: 3px solid rgba(242, 192, 120, 0.65);
}
