/*
Theme Name: EnlistPay
Theme URI: https://blog.enlistpay.ng
Author: EnlistPay
Author URI: https://enlistpay.ng
Description: The EnlistPay blog, in the same look as enlistpay.ng: blue and navy, Manrope headings, article cards and a footer with ways to reach us.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: enlistpay
*/

:root {
  --ink: #0f1f3d;
  --body: #33496b;
  --muted: #64748b;
  --line: #e5ecf5;
  --canvas: #f4f8fd;
  --blue: #1664f5;
  --blue-dark: #0f4fd0;
  --mint: #e3eeff;
  --navy: #0a1f44;
  --shadow: 0 14px 40px rgba(15, 31, 61, .08);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 400 16px/1.6 "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: "Manrope", sans-serif; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid rgba(22, 100, 245, .45); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ep-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; color: #fff; background: var(--navy); border-radius: 8px; }
.ep-skip:focus { top: 12px; color: #fff; }

.ep-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.ep-narrow { width: min(720px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.ep-wide { width: min(1040px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }

/* buttons and small labels */
.ep-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 20px; color: #fff; border: 0; border-radius: 999px; background: var(--blue); box-shadow: 0 8px 20px rgba(22, 100, 245, .25); font: 700 14px "DM Sans", sans-serif; text-decoration: none; cursor: pointer; transition: background .16s, transform .16s; }
.ep-button:hover { color: #fff; background: var(--blue-dark); transform: translateY(-1px); }
.ep-button svg { width: 16px; height: 16px; }
.ep-button-lg { min-height: 50px; padding: 0 26px; border-radius: 10px; font-size: 15px; }
.ep-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 7px 14px; color: #1d4ed8; border-radius: 999px; background: var(--mint); font-size: 13px; font-weight: 600; }
.ep-pill svg { width: 16px; height: 16px; }
.ep-eyebrow { margin: 0 0 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
.ep-eyebrow a { color: var(--muted); text-decoration: none; }
.ep-eyebrow a:hover { color: var(--blue); }
.ep-tag { display: inline-block; padding: 3px 10px; color: #1d4ed8; border-radius: 999px; background: var(--mint); font-size: 12px; font-weight: 700; text-decoration: none; }
a.ep-tag:hover { color: #fff; background: var(--blue); }

/* header */
.ep-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.admin-bar .ep-header { top: 32px; }
.ep-header-inner { display: flex; align-items: center; gap: 30px; height: 74px; }
.ep-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; text-decoration: none; }
.ep-brand img { display: block; width: auto; height: 42px; }
.ep-brand-tag { padding: 4px 10px; color: var(--blue); border: 1px solid #b9d2fb; border-radius: 999px; font: 700 12px "Manrope", sans-serif; }
.ep-panel { display: flex; flex: 1; align-items: center; gap: 24px; }
.ep-nav { margin-right: auto; }
.ep-menu { display: flex; flex-wrap: wrap; gap: 26px; margin: 0; padding: 0; list-style: none; }
.ep-menu a { color: var(--body); font-size: 14px; font-weight: 600; text-decoration: none; }
.ep-menu a:hover, .ep-menu .current-menu-item a { color: var(--blue); }
.ep-actions { display: flex; align-items: center; gap: 8px; }
.ep-login { padding: 10px 14px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.ep-menu-toggle { display: none; place-items: center; width: 44px; height: 44px; margin-left: auto; padding: 0; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.ep-menu-toggle svg { width: 22px; height: 22px; }
.ep-menu-toggle .ep-close, .ep-header.is-open .ep-menu-toggle .ep-open { display: none; }
.ep-header.is-open .ep-menu-toggle .ep-close { display: inline; }

/* page hero and search */
.ep-hero { background: radial-gradient(900px 420px at 80% 10%, #d9e8ff 0, rgba(217, 232, 255, 0) 70%), linear-gradient(180deg, #f3f8ff, #fff); }
.ep-hero .ep-wrap { padding: 64px 0 52px; }
.ep-hero-title { max-width: 760px; margin: 0; font: 800 50px/1.1 "Manrope", sans-serif; }
.ep-hero-title span { color: var(--blue); }
.ep-hero-lead { max-width: 560px; margin: 16px 0 0; color: #1f3352; font-size: 18px; }
.ep-hero-lead p { margin: 0; }
.ep-search { display: flex; align-items: center; gap: 10px; max-width: 520px; margin: 28px 0 0; padding: 6px 6px 6px 16px; border: 1px solid #cfdcf0; border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.ep-search svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); }
.ep-search input { flex: 1; min-width: 0; padding: 10px 0; color: var(--ink); border: 0; background: transparent; font: inherit; outline: 0; }
.ep-search button { min-height: 40px; padding: 0 18px; color: #fff; border: 0; border-radius: 999px; background: var(--blue); font: 700 14px "DM Sans", sans-serif; cursor: pointer; }
.ep-search button:hover { background: var(--blue-dark); }
.ep-search:focus-within { border-color: var(--blue); }
.ep-hero .ep-button { margin-top: 22px; }

/* article cards */
.ep-list { padding: 44px 0 72px; }
.ep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.ep-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 2px rgba(15, 31, 61, .04); transition: box-shadow .18s, transform .18s; }
.ep-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ep-card-media { display: block; aspect-ratio: 12 / 7; overflow: hidden; background: var(--canvas); }
.ep-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ep-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; background: radial-gradient(260px 160px at 80% 0, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0)), linear-gradient(135deg, #1664f5, #0a1f44); }
.ep-card-placeholder svg { width: 54px; height: 54px; opacity: .9; }
.ep-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.ep-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.ep-card-title { margin: 0; font-size: 20px; line-height: 1.3; }
.ep-card-title a { color: var(--ink); text-decoration: none; }
.ep-card-title a:hover { color: var(--blue); }
.ep-card-excerpt { color: var(--muted); font-size: 15px; }
.ep-card-excerpt p { margin: 10px 0 0; }
.ep-card-date { margin: auto 0 0; padding-top: 16px; color: var(--muted); font-size: 13px; }
/* on the front page the newest article gets a wide card */
.ep-grid.is-front .ep-card:first-child { grid-column: 1 / -1; flex-direction: row; }
.ep-grid.is-front .ep-card:first-child .ep-card-media { flex: 0 0 58%; aspect-ratio: auto; min-height: 340px; }
.ep-grid.is-front .ep-card:first-child .ep-card-body { justify-content: center; padding: 34px 38px; }
.ep-grid.is-front .ep-card:first-child .ep-card-title { font-size: 30px; }
.ep-grid.is-front .ep-card:first-child .ep-card-date { margin-top: 0; }

.ep-empty { padding: 56px 24px; border: 1px dashed #cfdcf0; border-radius: var(--radius); text-align: center; background: var(--canvas); }
.ep-empty h2 { margin: 0 0 8px; }
.ep-empty p { margin: 0 0 20px; color: var(--muted); }

.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; color: var(--body); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; text-decoration: none; }
.pagination .page-numbers:hover { color: var(--blue); border-color: var(--blue); }
.pagination .page-numbers.current { color: #fff; border-color: var(--blue); background: var(--blue); }
.pagination .page-numbers.dots { border-color: transparent; }

/* one article */
.ep-article { padding: 52px 0 64px; }
.ep-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ep-article-title { margin: 0; font: 800 44px/1.15 "Manrope", sans-serif; }
.ep-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.ep-byline > * + *::before { content: "·"; margin-right: 18px; }
.ep-byline span:first-child { color: var(--ink); font-weight: 600; }
.ep-article-image { margin-top: 34px; margin-bottom: 0; }
.ep-article-image img { display: block; width: 100%; border-radius: 18px; }
.ep-prose { margin-top: 36px; color: #1f3352; font-size: 18px; line-height: 1.75; }
.ep-prose > * { margin-top: 0; margin-bottom: 1.25em; }
.ep-prose h2 { margin-top: 1.9em; margin-bottom: .6em; color: var(--ink); font-size: 30px; line-height: 1.25; }
.ep-prose h3 { margin-top: 1.6em; margin-bottom: .5em; color: var(--ink); font-size: 23px; line-height: 1.3; }
.ep-prose h4 { margin-top: 1.4em; margin-bottom: .4em; color: var(--ink); font-size: 19px; }
.ep-prose a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ep-prose ul, .ep-prose ol { padding-left: 1.3em; }
.ep-prose li + li { margin-top: .4em; }
.ep-prose li::marker { color: var(--blue); }
.ep-prose blockquote, .ep-prose .wp-block-quote { margin-left: 0; margin-right: 0; padding: 18px 24px; border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; background: var(--canvas); color: var(--ink); font-size: 19px; }
.ep-prose blockquote p:last-of-type { margin-bottom: 0; }
.ep-prose blockquote cite { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; font-style: normal; }
.ep-prose img { border-radius: 12px; }
.ep-prose figure { margin-left: 0; margin-right: 0; }
.ep-prose figcaption, .ep-prose .wp-element-caption { margin-top: 8px; color: var(--muted); font-size: 14px; text-align: center; }
.ep-prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.ep-prose code { padding: 2px 6px; border-radius: 6px; background: var(--canvas); font-size: .88em; }
.ep-prose pre { overflow-x: auto; padding: 18px 20px; color: #e6edf7; border-radius: 12px; background: var(--navy); font-size: 14px; line-height: 1.6; }
.ep-prose pre code { padding: 0; background: none; }
.ep-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.ep-prose th, .ep-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.ep-prose th { color: var(--ink); background: var(--canvas); }
.ep-prose .wp-block-table { overflow-x: auto; }
.ep-prose .alignwide { width: min(1040px, calc(100vw - 40px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.ep-prose .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.ep-prose .alignfull img { border-radius: 0; }
.ep-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.ep-prose .alignright { float: right; margin: .3em 0 1em 1.4em; }
.ep-prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.ep-prose .wp-block-button__link { padding: 12px 22px; color: #fff; border-radius: 999px; background: var(--blue); font-size: 15px; font-weight: 700; text-decoration: none; }
.ep-prose .wp-block-button__link:hover { background: var(--blue-dark); }
.ep-prose .is-style-outline .wp-block-button__link { color: var(--blue); border: 2px solid var(--blue); background: transparent; }
.ep-prose::after { content: ""; display: table; clear: both; }
.ep-pages { margin-top: 24px; font-weight: 600; }
.ep-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.ep-tags a { padding: 5px 12px; color: var(--body); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; }
.ep-tags a:hover { color: var(--blue); border-color: var(--blue); }

.post-navigation { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; height: 100%; padding: 16px 18px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.post-navigation a:hover { border-color: var(--blue); }
.post-navigation small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.post-navigation span { font: 700 16px/1.35 "Manrope", sans-serif; }
.post-navigation .nav-next { grid-column: 2; text-align: right; }

/* comments */
.ep-comments { margin-top: 48px; }
.ep-comments h2, .comment-reply-title { font-size: 22px; }
.ep-comment-list, .ep-comment-list .children { margin: 0; padding: 0; list-style: none; }
.ep-comment-list .children { padding-left: 28px; }
.ep-comment-list .comment-body { margin-bottom: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; }
.ep-comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.ep-comment-list .comment-author img { border-radius: 50%; }
.ep-comment-list .says { display: none; }
.ep-comment-list .comment-metadata { font-size: 13px; }
.ep-comment-list .comment-metadata a { color: var(--muted); text-decoration: none; }
.ep-comment-list .reply a { font-size: 14px; font-weight: 700; text-decoration: none; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; color: var(--ink); border: 1px solid #cfdcf0; border-radius: 10px; font: inherit; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--blue); outline: 0; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }
.comment-notes, .logged-in-as { color: var(--muted); font-size: 14px; }

/* call to action and footer */
.ep-cta { background: linear-gradient(180deg, #fff, #f3f8ff); border-top: 1px solid var(--line); }
.ep-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 56px 0; }
.ep-cta h2 { max-width: 620px; margin: 0; font-size: 30px; line-height: 1.2; }
.ep-cta p:not(.ep-pill) { max-width: 560px; margin: 12px 0 0; color: var(--muted); }
.ep-cta .ep-button { flex: 0 0 auto; }

.ep-footer { color: #c5d2e8; background: var(--navy); }
.ep-footer .ep-wrap { padding: 34px 0 26px; }
.ep-footer a { color: #c5d2e8; text-decoration: none; }
.ep-footer a:hover { color: #fff; }
.ep-contact { padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ep-contact h2 { margin: 0 0 14px; color: #fff; font-size: 16px; }
.ep-contact ul { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ep-contact-link { display: flex; align-items: center; gap: 11px; padding: 6px 16px 6px 6px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; font-size: 13.5px; transition: background .15s, border-color .15s; }
.ep-footer a.ep-contact-link:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); }
.ep-contact-link i { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: var(--blue); }
.ep-contact-link i svg { width: 17px; height: 17px; }
.ep-contact-link i.whatsapp { background: #25d366; }
.ep-contact-link i.tiktok { border: 1px solid rgba(255, 255, 255, .28); background: #000; }
.ep-contact-link i.whatsapp svg, .ep-contact-link i.tiktok svg { width: 19px; height: 19px; }
.ep-contact-link small { display: block; color: #8ea2c4; font-size: 11.5px; line-height: 1.3; }
.ep-contact-link strong { display: block; color: #fff; font-weight: 600; line-height: 1.3; }
.ep-footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 30px; padding: 26px 0 18px; }
.ep-footer-brand img { display: block; width: auto; height: 40px; }
.ep-footer-brand p { margin: 8px 0 0; font-size: 13px; }
.ep-footer-menu { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; }
.ep-footer-menu a { font-size: 13.5px; font-weight: 600; }
.ep-copy { margin: 0; color: #8ea2c4; font-size: 12.5px; }

/* smaller screens */
@media (max-width: 1020px) {
  .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-menu { gap: 18px; }
  .ep-header-inner { gap: 20px; }
}

@media (max-width: 860px) {
  .ep-header-inner { height: 66px; }
  .ep-menu-toggle { display: grid; }
  .ep-panel { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 20px 30px rgba(15, 31, 61, .08); }
  .ep-header.is-open .ep-panel { display: flex; }
  .ep-nav { margin: 0; }
  .ep-menu { flex-direction: column; gap: 0; }
  .ep-menu a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .ep-actions { gap: 10px; padding-top: 16px; }
  .ep-actions a { flex: 1; min-height: 46px; justify-content: center; text-align: center; }
  .ep-login { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; }
  .ep-grid.is-front .ep-card:first-child { flex-direction: column; }
  .ep-grid.is-front .ep-card:first-child .ep-card-media { flex: none; min-height: 0; aspect-ratio: 12 / 7; }
  .ep-grid.is-front .ep-card:first-child .ep-card-body { padding: 22px; }
  .ep-grid.is-front .ep-card:first-child .ep-card-title { font-size: 24px; }
  .ep-cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 782px) {
  .admin-bar .ep-header { top: 46px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .ep-wrap { width: calc(100% - 32px); }
  .ep-narrow, .ep-wide { width: calc(100% - 32px); }
  .ep-panel { padding-left: 16px; padding-right: 16px; }
  .ep-brand img { height: 34px; }
  .ep-hero .ep-wrap { padding: 42px 0 36px; }
  .ep-hero-title { font-size: 34px; }
  .ep-hero-lead { font-size: 16px; }
  .ep-search button { padding: 0 14px; }
  .ep-list { padding: 30px 0 52px; }
  .ep-grid { grid-template-columns: 1fr; gap: 20px; }
  .ep-article { padding: 34px 0 48px; }
  .ep-article-title { font-size: 31px; }
  .ep-article-image img { border-radius: 12px; }
  .ep-prose { margin-top: 28px; font-size: 17px; }
  .ep-prose h2 { font-size: 25px; }
  .ep-prose h3 { font-size: 21px; }
  .ep-prose .alignleft, .ep-prose .alignright { float: none; margin: 0 0 1em; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { grid-column: 1; }
  .ep-cta-inner { padding: 42px 0; }
  .ep-cta h2 { font-size: 24px; }
  .ep-cta .ep-button { width: 100%; }
  .ep-contact ul { flex-direction: column; }
  .ep-contact-link { width: 100%; }
}

@media (max-width: 600px) {
  .admin-bar .ep-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ep-card, .ep-button { transition: none; }
  .ep-card:hover, .ep-button:hover { transform: none; }
}
