/* 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 rgba(75, 163, 173, 0.9); /* 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;
}

.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: #4BA3AD;
}

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

/* ================================
   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: #4BA3AD;
}

.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.05rem;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0;
  color: #2f2f2f;
  margin-bottom: 10px;
}

.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 */
}

/* ================================
   WALLET ECOSYSTEM — Capability Layers (Option 1A)
   ================================ */

.wallet-panel{
  padding: 0.25rem 0;
}

.wallet-intro{
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(67, 67, 67, 0.82);
  margin: 0 0 1.2rem 0;
}

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

.wallet-card{
  position: relative;
  padding: 1.4rem 1.4rem 1.25rem 1.4rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.28);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.wallet-card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 6px;
  opacity: 0.45;
}

.wallet-card--capabilities::before{
  background: rgba(158, 181, 190, 0.95);
}

.wallet-card--platforms::before{
  background: rgba(242, 192, 120, 0.95);
}

.wallet-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-left: 0.25rem; /* breathing room from rail */
  margin-bottom: 0.35rem;
}

.wallet-label{
  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.72rem;
  color: rgba(77, 85, 91, 0.72);
}

.wallet-title{
  font-family: "Arsenal SC", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  font-weight: 400;
  margin: 0.25rem 0 0.15rem 0;
  color: #2f3437;
}

.wallet-subtitle{
  font-family: "Roboto", sans-serif;
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(67, 67, 67, 0.78);
  margin: 0 0 0.85rem 0;
}

.wallet-box{
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.30);
  border-radius: 10px;
  padding: 0.95rem 1rem 0.9rem 1rem;
}

.wallet-box-title{
  font-family: "Arsenal SC", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 0.72rem;
  color: rgba(77, 85, 91, 0.72);
  margin-bottom: 0.55rem;
}

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

.wallet-bullets li{
  display: grid;
  grid-template-columns: 1.15fr 1.6fr;
  gap: 0.75rem;
  padding: 10px 0;
}

.wallet-bullets li:not(:last-child){
  border-bottom: 1px solid rgba(77, 85, 91, 0.08);
}

.wallet-bullet-key{
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  color: rgba(47, 52, 55, 0.92);
}

.wallet-bullet-note{
  font-family: "Roboto", sans-serif;
  font-size: 0.92rem;
  color: rgba(67, 67, 67, 0.74);
}

.wallet-list2{
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 28px;
}

.wallet-list2 li{
  break-inside: avoid;
  padding: 8px 0;
}

.wallet-footnote{
  margin-top: 0.9rem;
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding-left: 0.25rem;
}

.wallet-footnote-label{
  font-family: "Arsenal SC", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 0.72rem;
  color: rgba(77, 85, 91, 0.70);
}

.wallet-footnote-text{
  font-family: "Roboto", sans-serif;
  font-size: 0.92rem;
  color: rgba(67, 67, 67, 0.72);
}

@media (min-width: 768px){
  .wallet-grid2{
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
  }
}

/* Entry point scope whisper */
.entry-scope {
  margin: 6px 0 8px;
  font-size: 0.85rem;
  color: #6f6f6f; /* same family as section meta text */
  line-height: 1.4;
}

/* Entry point taxonomy chips */
.entry-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.entry-chip {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #d8d4cb;
  color: #6a6a6a;
  background: transparent;
  text-transform: uppercase;
}

/* Optional: very subtle emphasis when card is active */
.entry-card.active .entry-chip {
  border-color: #e6c08a;
  color: #5c5c5c;
}


/* ==========================================================
   MOBILE FIX — Entry Points layout (prevents overflow + overlap)
   Drop at END of paymentsHub3.css
   ========================================================== */

/* Safer sizing to prevent "grid goes beyond right edge" issues */
.entry-point-container,
.entry-point-grid,
.entry-point-card {
  max-width: 100%;
}

.entry-point-grid {
  width: 100%;
}

/* Mobile: treat each entry card as a vertical stack */
@media (max-width: 1023px) {
  .entry-point-card {
    flex-direction: column;        /* fixes mixed-up lines on mobile */
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.55rem;
  }

  /* Keep the "→ 3 min / → search / → deep dive" readable and aligned */
  .entry-point-time {
    align-self: flex-start;
    white-space: nowrap;           /* you already have this; keep it */
  }

  .entry-scope {
    margin: 0;                     /* avoid odd spacing on wrap */
    width: 100%;
  }

  /* Chips should wrap nicely instead of pushing width */
  .entry-chips {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .entry-chip {
    max-width: 100%;
  }
}
