/*
Theme Name: Finazul
Theme URI: https://p2pinvesting.es/
Description: Child theme of Twenty Twenty for p2pinvesting.es. Light fintech look: white surfaces, data-blue accents, Clash Display headings and excerpt-based archives.
Author: p2pinvesting.es
Template: twentytwenty
Version: 1.0.1
Text Domain: finazul
*/

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@500,600,700&display=swap');

/* ===== p2pinvesting.es — palette (ink navy / data blue / sky / market green) ===== */
:root{ --ink:#0B1E3B; --blue:#3861FB; --blue-deep:#2247D6; --sky:#EEF3FC; --skyline:#DCE6F7;
  --green:#16C784; --red:#EA3943; --muted:#5B6C87; --line:rgba(11,30,59,.12); }

/* base */
body{ background:#FFFFFF; color:#0B1E3B; }
body, button, input, select, textarea{ font-family:ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif; }
/* Twenty Twenty forces a serif inside .entry-content -> fintech sans */
.entry-content{ font-family:ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif; }
.entry-content p, .entry-content li{ font-size:1.8rem; line-height:1.72; }
#site-content, .singular .entry-header, .archive .entry-header{ background:transparent; }
a{ color:#3861FB; }
a:hover{ color:#0B1E3B; }
::selection{ background:#3861FB; color:#fff; }
hr,.dividing-line,.entry-content hr{ background:var(--line); }

/* headings -> Clash Display / ink */
h1,h2,h3,h4,h5,h6,.entry-title,.archive-title,.section-inner .archive-title,
.heading-size-1,.heading-size-2,.heading-size-3,.heading-size-4,.heading-size-5,.heading-size-6,
.widget-title,.comments-title,.comment-reply-title,.related-posts-title{
  font-family:'Clash Display',ui-sans-serif,system-ui,sans-serif!important; color:#0B1E3B;
  letter-spacing:-.015em; font-weight:600; }

/* header + nav: solid white bar, hairline rule, ticker-style brand mark */
#site-header{ background:#FFFFFF!important; border-bottom:1px solid var(--line); box-shadow:none; }
.header-inner{ padding-top:20px!important; padding-bottom:20px!important; }
.site-title a,.site-title{ font-family:'Clash Display',ui-sans-serif,sans-serif!important; font-weight:600;
  letter-spacing:-.01em; color:#0B1E3B!important; font-size:22px!important; text-decoration:none; }
.site-title a::before{ content:""; display:inline-block; width:17px; height:15px; margin-right:9px;
  background:
    linear-gradient(#3861FB,#3861FB) 0 100%/4px 6px no-repeat,
    linear-gradient(#3861FB,#3861FB) 6.5px 100%/4px 10px no-repeat,
    linear-gradient(#16C784,#16C784) 13px 100%/4px 15px no-repeat; }
.site-description{ color:#5B6C87; }
.primary-menu > li > a, .primary-menu > li > .icon,
.header-toggles .toggle, .toggle, .toggle .toggle-text,
.header-navigation-wrapper .header-footer-navigation a{ color:#0B1E3B!important; }
.primary-menu > li > a{ font-size:15px!important; letter-spacing:.01em!important; }
.primary-menu > li > a:hover{ color:#3861FB!important; }
/* dropdown submenu: white data card instead of the theme's black panel */
.primary-menu ul.sub-menu, .primary-menu .sub-menu{
  background:#FFFFFF!important; border:1px solid var(--skyline)!important; border-radius:10px;
  box-shadow:0 18px 38px rgba(11,30,59,.14)!important; overflow:hidden; }
.primary-menu .sub-menu li{ border-color:var(--skyline)!important; }
.primary-menu .sub-menu a, .primary-menu ul.sub-menu li a{ color:#0B1E3B!important; font-size:14px!important; }
.primary-menu .sub-menu a:hover, .primary-menu .sub-menu li:hover > a{ color:#3861FB!important; background:#EEF3FC; }
.primary-menu ul.sub-menu::before, .primary-menu ul.sub-menu::after{ border-bottom-color:#FFFFFF!important; }
.header-footer-navigation, .menu-modal{ background:#FFFFFF; }
.modal-menu a{ color:#0B1E3B; }

/* accent overrides (Twenty Twenty pink -> data blue) */
.color-accent,.color-accent-hover:hover,a.color-accent,.has-accent-color,
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color){ color:#3861FB!important; }
.bg-accent,.bg-accent-hover:hover,button.bg-accent,.has-accent-background-color{ background:#3861FB!important; color:#fff!important; }
.entry-categories a,.entry-categories-inner a{ color:#3861FB!important; }
.entry-content a{ color:#3861FB; text-decoration-color:rgba(56,97,251,.35); }
.entry-content a:hover{ color:#0B1E3B; }
.has-drop-cap:not(:focus):first-letter{ color:#3861FB; }
blockquote{ border-color:#3861FB; background:#EEF3FC; padding:1.2rem 1.6rem; border-radius:0 10px 10px 0; }

/* buttons */
.button,.faux-button,.wp-block-button__link,input[type=submit],input[type=button],
.entry-content .button,.comment-form input[type=submit]{
  background:#3861FB!important; color:#fff!important; border-color:#3861FB!important; border-radius:8px; }
.button:hover,.wp-block-button__link:hover,input[type=submit]:hover{ background:#0B1E3B!important; border-color:#0B1E3B!important; color:#fff!important; }

/* data tables inside articles: exchange-style */
.entry-content table{ border:1px solid var(--skyline); border-collapse:separate; border-spacing:0; border-radius:10px; overflow:hidden; font-size:.92em; }
.entry-content th{ background:#EEF3FC; color:#0B1E3B; border:none; border-bottom:1px solid var(--skyline); font-weight:600; }
.entry-content td{ border:none; border-bottom:1px solid #EFF4FC; color:#0B1E3B; }
.entry-content tr:nth-child(even) td{ background:#F7FAFE; }
.entry-content tr:last-child td{ border-bottom:none; }

/* archive / category pages */
.archive-header .archive-title,.archive-title{ color:#0B1E3B; }
.archive-subtitle,.taxonomy-description,.taxonomy-description p{ color:#5B6C87; }
.post .entry-title a{ color:#0B1E3B; }
.post .entry-title a:hover{ color:#3861FB; }
.entry-meta,.post-meta,.entry-categories,.entry-categories-inner,.comment-meta,.post-taxonomies{ color:#5B6C87; }
.entry-meta a,.entry-categories a,.post-taxonomies a{ color:#3861FB; }
.sticky-post{ background:#16C784; color:#fff; }
.featured-media img, .archive .featured-media img{ border-radius:14px; border:1px solid var(--skyline); }

/* Leer más chip on archives */
.more-link-wrap{ margin-top:1.4rem; }
a.more-link.faux-button{ background:#fff!important; color:#3861FB!important; border:1px solid #3861FB!important;
  border-radius:8px; font-size:14px; padding:.7em 1.4em; letter-spacing:.01em; }
a.more-link.faux-button:hover{ background:#3861FB!important; color:#fff!important; }

/* pagination */
.pagination a,.pagination .current,.pagination-next a,.pagination-prev a{ color:#3861FB; }
.pagination .current{ color:#0B1E3B; font-weight:600; }

/* comments / forms */
.comment-body{ color:#0B1E3B; }
input[type=text],input[type=email],input[type=url],input[type=search],textarea{
  background:#fff; border-color:var(--skyline); color:#0B1E3B; border-radius:8px; }

/* footer: light data-sheet footer, hairline top */
#site-footer, .footer-nav-widgets-wrapper{ background:#F7FAFE!important; border-top:1px solid var(--skyline); }
#site-footer, #site-footer a, .footer-widgets, .footer-widgets p,
.footer-widgets a, .footer-menu a, .footer-nav-widgets-wrapper a{ color:#5B6C87!important; }
.footer-menu a:hover,#site-footer a:hover{ color:#3861FB!important; }
.footer-widgets .widget-title{ color:#0B1E3B!important; font-family:'Clash Display',ui-sans-serif,sans-serif; }
.footer-copyright,.powered-by-wordpress,.powered-by-wordpress a{ color:#8DA0BC!important; }
.to-the-top{ color:#5B6C87!important; }
