/* =========================================
   CFC Docs — Brand Skin (Metallic Silver v2)
   Safe selectors; no gradient on nav links
   ========================================= */

/* 0) Brand tokens */
:root{
  --brand-bg: #0b1f3a;        /* header/nav deep blue */
  --brand-primary: #113a6a;   /* link/CTA blue */
  --accent-silver: linear-gradient(135deg, #f9f9f9 0%, #c0c0c0 40%, #a0a0a0 70%, #e5e5e5 100%);
  --ink: #0f1720;             /* body text */
  --muted: #6b7280;           /* muted text */
  --surface: #ffffff;         /* article/bg cards */
  --surface-2: #f6f8fb;       /* subtle sections */
  --border: #e5e7eb;          /* dividers */
  --radius: 12px;
  --shadow: 0 10px 30px rgba(2,12,27,.08);
}

/* 1) Base type */
html, body{
  font-family: "Inter","Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a{ color: var(--brand-primary); text-decoration: none; }
a:hover{ color: #0c2e5c; }

/* 2) Header / Nav (NO gradients on links) */
#header, .navbar, .nav-wrap{
  background: var(--brand-bg) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
#logo a,
.navbar a,
.navbar .nav > li > a,
.nav-wrap a{
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  color: #ffffff !important;
}
.navbar a:hover,
.navbar .nav > li > a:hover,
.navbar .active > a,
.navbar .nav > li.active > a{
  background: none !important;
  color: #d1d5db !important; /* subtle silver text */
  text-decoration: none !important;
}

/* 3) Search hero (collection pages) */
#docsSearch{
  background: linear-gradient(180deg, var(--brand-bg), #103056);
  padding: 64px 0 48px !important;
  border-bottom: none !important;
}
#docsSearch h1, #docsSearch p{ color: #fff !important; }

/* 4) Article shell */
.article, .docs-article, #content .article{
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow);
  padding: 28px !important;
}

/* Headings */
.article h1{
  font-family: "Montserrat","Inter",system-ui,sans-serif;
  font-weight: 700;
  color: var(--brand-bg);
  margin: 0 0 16px !important;
}
.article h2, .article h3{
  color: var(--brand-bg);
  font-weight: 700;
  margin-top: 28px !important;
  margin-bottom: 12px !important;
}

/* Body copy */
.article p{ line-height: 1.65; margin: 0 0 12px !important; }
.article ul, .article ol{ margin: 0 0 14px 1.25rem !important; }
.article li + li{ margin-top: 6px; }

/* Tables / images */
.article table{
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.article table th{ background: var(--surface-2) !important; }
.article img{ border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.06); }

/* 5) “Guía paso a paso” links → cards */
.article p > a:only-child{
  display: block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(2,12,27,.05);
  transition: all .2s ease;
}
.article p > a:only-child:hover{
  background: #fff;
  border-color: #d1d5db;
}
.article p > a:only-child::after{ content: " →"; font-weight: 700; }

/* Progressive enhancement: grid the cluster when supported */
@supports(selector(:has(*))){
  /* If a section contains a run of these link-only paragraphs, grid them */
  .article :has(> a:only-child){
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* 6) Buttons / CTAs (metallic silver) */
.article a.button,
.article .btn,
.article .hsds-button{
  background: var(--accent-silver) !important;
  color: #111 !important;
  border: 1px solid #999 !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.5);
  transition: all .2s ease;
}
.article a.button:hover,
.article .btn:hover,
.article .hsds-button:hover{
  filter: brightness(1.05) contrast(1.1);
}

/* 7) Callouts (blockquote with metallic bar) */
.article blockquote{
  border-left: 6px solid transparent;
  border-image: var(--accent-silver) 1;
  background: #f9f9f9;
  padding: 12px 16px !important;
  border-radius: 6px !important;
}

/* 8) Breadcrumbs / meta / footer */
.breadcrumb, .breadcrumbs{ color: var(--muted) !important; }
.breadcrumb a{ color: var(--brand-primary) !important; }
.articleFoot time.lu{ color: var(--muted) !important; }

#footer, .footer{
  background: #0a152b !important;
  color: #cbd5e1 !important;
  border-top: 1px solid rgba(255,255,255,.06) !important;
}
#footer a, .footer a{
  color: #d1d5db !important;   /* simple silver text, no gradients */
  text-decoration: none;
}
#footer a:hover, .footer a:hover{ color: #e5e7eb !important; }

/* 9) Mobile tweaks */
@media (max-width: 768px){
  .article{ padding: 22px !important; border-radius: 10px !important; }
  .article h1{ font-size: 1.6rem !important; }
  .article p > a:only-child{ padding: 12px 14px; }
}