/* J Y & CO palette: Slate */
:root { --p-dark: #26303a; --p-dark-2: #34424f; --p-btn: #2e3a46; --p-btn-hover: #3e4d5c; --p-accent: #4d6378; --jy-black: #26303a; }
/* Dark sections */
body footer.footer { background: var(--p-dark) !important; }
body .page-hero, body .page-hero.svc-hero { background: linear-gradient(135deg, var(--p-dark) 0%, var(--p-dark-2) 100%) !important; }
body section.expertise { background: linear-gradient(135deg, var(--p-dark) 0%, var(--p-dark-2) 100%) !important; }
body .svc-process { background: var(--p-dark) !important; }
body .engagement-card, body .about-cta-card, body .contact-cta-card, body .home-cta-card { background: linear-gradient(135deg, var(--p-dark) 0%, var(--p-dark-2) 100%) !important; }
body .svc-related, body .svc-desk--feature, body .svc-facts { background: var(--p-dark) !important; border-color: var(--p-dark) !important; }
body .jb-heading, body .login-form-side { background: var(--p-dark) !important; }
body .jy-menu { background: repeating-radial-gradient(circle at 50% 115%, rgba(255,255,255,0) 0 118px, rgba(255,255,255,0.035) 119px 120px), linear-gradient(160deg, var(--p-dark) 0%, var(--p-dark-2) 100%) !important; }
body .highlight-tag.whatsapp, body .highlight-tag.open { background: var(--p-btn) !important; border-color: var(--p-btn) !important; }
/* Primary buttons on light backgrounds */
body .jy-header-cta, body .hero .btn-primary, body .panel-action .btn-primary, body aside.svc-who .svc-btn--primary,
body #contact-form .form-submit .btn, body #careers-form .submit-btn, body #jb-submit, body .btn-primary:not(.cta-buttons .btn-primary) {
  background: var(--p-btn) !important; border-color: var(--p-btn) !important; color: #ffffff !important; }
body .jy-header-cta:hover, body .hero .btn-primary:hover, body .panel-action .btn-primary:hover, body aside.svc-who .svc-btn--primary:hover,
body #contact-form .form-submit .btn:hover, body #careers-form .submit-btn:hover, body #jb-submit:hover {
  background: var(--p-btn-hover) !important; border-color: var(--p-btn-hover) !important; }
body .jy-menu-btn[aria-expanded="true"] { background: var(--p-btn) !important; border-color: var(--p-btn) !important; }
/* Small accents on light backgrounds */
body .hero .hero-kicker, body .svc-eyebrow:not(.svc-process .svc-eyebrow), body .svc-offer .num { color: var(--p-accent) !important; }
body .svc-group-title::before, body .svc-who:not(.svc-facts) li::before, body .service-features li::before { background: var(--p-accent) !important; }
body .service-card .svc-more, body .svc-desk--other em { border-bottom-color: var(--p-accent) !important; color: var(--p-btn) !important; }
body .svc-desk--other .svc-desk-ico { color: var(--p-btn) !important; }
body .jb-service[aria-pressed="true"] { border-color: var(--p-btn) !important; }
body .jb-slot[aria-pressed="true"], body .jb-slot.selected, body .jb-slot.active { background: var(--p-btn) !important; border-color: var(--p-btn) !important; }
body select:focus, body input:focus, body textarea:focus { border-color: var(--p-btn) !important; }
/* Wordmark matches the slate logo letters */
body .jy-header .jy-brand-text strong { color: #2E3A46 !important; }

/* ---------- Login page: slate fields, matching links, no yellow ---------- */
body.login-page .login-form .form-group input,
body.login-page #client-reset-panel input, body.login-page #employee-reset-panel input, body.login-page #client-activation-panel input {
  background: #34424f !important; color: #ffffff !important; border: 1px solid #536a80 !important; caret-color: #ffffff;
}
body.login-page .login-form .form-group input::placeholder { color: #b9c4ce !important; }
body.login-page .login-form .form-group input:focus,
body.login-page #client-reset-panel input:focus, body.login-page #employee-reset-panel input:focus, body.login-page #client-activation-panel input:focus {
  border-color: #dfe6ec !important; box-shadow: 0 0 0 3px rgba(255,255,255,0.16) !important; outline: none !important;
}
body.login-page .login-form .form-group input:-webkit-autofill,
body.login-page .login-form .form-group input:-webkit-autofill:hover,
body.login-page .login-form .form-group input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff !important; -webkit-box-shadow: 0 0 0 1000px #34424f inset !important; box-shadow: 0 0 0 1000px #34424f inset !important;
}
body.login-page .login-form .form-group input:autofill { background: #34424f !important; box-shadow: 0 0 0 1000px #34424f inset !important; }
/* Forgot password: identical on both tabs */
body.login-page .employee-password-help, body.login-page .client-password-help { margin: 0 0 14px !important; text-align: right !important; font-size: 13px !important; line-height: 1.5 !important; }
body.login-page #employee-forgot-link, body.login-page #client-forgot-link {
  color: #ffffff !important; text-decoration: underline !important; text-underline-offset: 3px; display: inline-block; padding: 4px 0; font-size: 13px !important; font-weight: 400 !important;
}
body.login-page #employee-forgot-link:hover, body.login-page #client-forgot-link:hover { color: #dfe6ec !important; }
/* Other yellow on the login page */
body.login-page .login-form .jy-password-eye:hover { color: #dfe6ec !important; }
body.login-page *:focus-visible { outline-color: #ffffff !important; }
body.login-page .login-tab:focus:not(:focus-visible) { outline: none !important; }
body.login-page #employee-reset-back, body.login-page #client-reset-back, body.login-page #client-activation-panel .activation-link { color: #ffffff !important; text-decoration: underline; text-underline-offset: 3px; }
body.login-page #client-activation-panel .activation-progress strong { color: #ffffff !important; }
body.login-page #client-login-help, body.login-page #employee-reset-status, body.login-page #client-reset-panel [role="status"] {
  background: #eef2f5 !important; color: #26303a !important; border-color: #c9d3dc !important; border-left-color: #2e3a46 !important;
}
body.login-page #client-login-help .client-help-actions a:first-child { background: #2e3a46 !important; border-color: #2e3a46 !important; color: #ffffff !important; }

/* ---------- Subtle lemon-yellow accents (logo yellow #FFED00): numbers, icons, small rules, hover borders ---------- */
:root { --p-gold: #ffed00; --p-gold-tint: rgba(255,237,0,0.18); --p-gold-tint-dark: rgba(255,237,0,0.10); --p-gold-line: rgba(255,237,0,0.75); }
/* On dark sections */
body .svc-steps li::before { color: var(--p-gold) !important; }
body .jy-menu-ico, body .jy-menu-note svg { color: var(--p-gold) !important; opacity: 0.9; }
body .jy-menu-tab[aria-selected="true"]::before { background: var(--p-gold) !important; }
body .svc-desk .svc-desk-ico { background: var(--p-gold-tint-dark) !important; color: var(--p-gold) !important; }
body .svc-related svg { color: var(--p-gold) !important; }
body .svc-facts li::before { background: var(--p-gold) !important; }
body .footer .footer-section h4::after { background: var(--p-gold) !important; opacity: 0.85; }
/* On light sections */
body .svc-offer .num { color: var(--p-btn) !important; }
body .stat strong { color: var(--p-btn) !important; }
body .stat strong::after { content: ""; display: block; width: 18px; height: 2px; margin: 6px auto 0; background: var(--p-gold); border-radius: 2px; }
body .svc-group-title::before { background: var(--p-gold) !important; }
body .svc-who:not(.svc-facts) li::before, body .service-features li::before { background: var(--p-gold) !important; }
body .service-icon, body .contact-icon, body .svc-desk--other .svc-desk-ico { color: var(--p-btn) !important; background: var(--p-gold-tint) !important; }
body .service-card .svc-more { border-bottom-color: rgba(255,237,0,0.6) !important; }
body .svc-desk--other em { border-bottom-color: var(--p-gold) !important; }
/* Hover borders */
body .service-card:hover, body .svc-desk:hover, body .svc-related:hover, body .svc-offer li:hover, body .card:hover { border-color: var(--p-gold-line) !important; }
body .svc-breadcrumb a:hover { color: var(--p-gold) !important; }
@media (max-width: 768px) { body .jy-menu-tabs { background: linear-gradient(var(--p-dark) 80%, rgba(38,48,58,0)) !important; } }

/* ---------- About: readable intro ---------- */
body .about-content p { text-align: left !important; max-width: 72ch; }
body .about-content h2.about-sub { font-size: 1.15rem; font-weight: 600; color: var(--p-btn); margin: 1.8rem 0 0.5rem; letter-spacing: 0; text-align: left; }

/* ---------- Home: What we do (desks left, services right) ---------- */
.wwd { background: #ffffff; padding: 4rem 0; }
.wwd-head { margin-bottom: 1.8rem; }
.wwd-eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #4d6378; margin: 0 0 0.4rem; }
.wwd-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; color: var(--p-dark); }
.wwd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.25rem; align-items: stretch; }
.wwd-desks { display: grid; gap: 1rem; grid-template-rows: 1fr 1fr auto; }
.wwd-svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.wwd a { text-decoration: none; }
.wwd-desk, .wwd-svc { display: grid; grid-template-columns: 40px 1fr; column-gap: 0.85rem; row-gap: 0.3rem; align-items: center; border-radius: 14px; padding: 1.2rem 1.25rem; transition: border-color .2s, transform .2s; }
.wwd-desk { background: var(--p-dark); border: 1px solid var(--p-dark); color: #fff; align-content: start; }
.wwd-svc { background: #f6f6f3; border: 1px solid #e6e6e1; color: var(--p-dark); align-content: start; }
.wwd-desk:hover, .wwd-svc:hover { border-color: var(--p-gold-line); transform: translateY(-2px); }
.wwd-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.wwd-ico svg { width: 21px; height: 21px; }
.wwd-desk .wwd-ico { background: var(--p-gold-tint-dark); color: var(--p-gold); }
.wwd-svc .wwd-ico { background: var(--p-gold-tint); color: var(--p-btn); }
.wwd strong { font-size: 1.05rem; font-weight: 600; }
.wwd-txt { grid-column: 1 / -1; font-size: 0.9rem; line-height: 1.5; }
.wwd-desk .wwd-txt { color: #c9d1d9; }
.wwd-svc .wwd-txt { color: #59636c; }
.wwd-desk em { grid-column: 1 / -1; font-style: normal; font-weight: 600; font-size: 0.85rem; margin-top: 0.4rem; align-self: end; }
.wwd-other { display: flex; align-items: center; gap: 0.6rem; border: 1px dashed #c9d0d6; border-radius: 12px; padding: 0.85rem 1rem; color: var(--p-dark); font-size: 0.88rem; line-height: 1.4; }
.wwd-other svg { width: 18px; height: 18px; flex: none; color: var(--p-btn); }
.wwd-other b { margin-left: auto; }
.wwd-other:hover { border-color: var(--p-gold-line); }
.wwd-all { margin: 1.4rem 0 0; text-align: right; }
.wwd-all a { color: var(--p-btn); font-weight: 600; font-size: 0.92rem; border-bottom: 2px solid var(--p-gold); padding-bottom: 2px; }
@media (max-width: 960px) { .wwd-grid { grid-template-columns: 1fr; } .wwd-desks { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .wwd-other { grid-column: 1 / -1; } }
@media (max-width: 640px) { .wwd { padding: 2.8rem 0; } .wwd-desks, .wwd-svcs { grid-template-columns: 1fr; } .wwd-all { text-align: left; } }

/* ---------- Accessibility: readable small grey text ---------- */
body .footer .footer-copy, body .footer .footer-copy span { color: #aeb6be !important; }
body .svc-note { color: #606a73 !important; }
body .cf-label .opt { color: #636d76 !important; }
body .home-section .panel-inner > p, body .panel-inner > p, body .senior-team-section .section-header p, body .access-note > p { color: #5c5f64 !important; }
body.login-page .brand-tagline { color: #5c5f64 !important; }
body .about-content { max-width: 780px; margin-left: auto !important; margin-right: auto !important; }
body .careers-info p, body .job-category p { text-align: left !important; }

/* ---------- Header lockup (option C): logo | J Y & CO  Chartered/Accountants ---------- */
body .jy-brand { gap: 1.25rem !important; }
body .jy-brand .jy-brand-logo { height: 52px !important; width: auto !important; }
body .jy-brand-text { border-left: 1px solid #cfcec8 !important; padding-left: 1.25rem !important; gap: 0.8rem !important; }
body .jy-header .jy-brand-text strong { font-size: 1.9rem !important; font-weight: 600 !important; letter-spacing: 0.05em !important; }
body .jy-brand-text small { font-size: 0.72rem !important; border-left: 0 !important; padding-left: 0 !important; }
@media (max-width: 768px) {
  body .jy-brand { gap: 0.9rem !important; }
  body .jy-brand .jy-brand-logo { height: 40px !important; }
  body .jy-brand-text { padding-left: 0.9rem !important; gap: 0.6rem !important; }
  body .jy-header .jy-brand-text strong { font-size: 1.45rem !important; }
  body .jy-brand-text small { font-size: 0.6rem !important; }
}
@media (max-width: 480px) {
  body .jy-brand { gap: 0.6rem !important; }
  body .jy-brand .jy-brand-logo { height: 31px !important; }
  body .jy-brand-text { padding-left: 0.6rem !important; gap: 0.45rem !important; }
  body .jy-header .jy-brand-text strong { font-size: 1.15rem !important; letter-spacing: 0.04em !important; }
  body .jy-brand-text small { font-size: 0.52rem !important; letter-spacing: 0.12em !important; }
}

/* ---------- Tools landing page ---------- */
.tools-list-section { padding: 3.5rem 0 4rem; background: #f4f5f6; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.tools-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 0.9rem; row-gap: 0.45rem; align-items: center; background: #fff; border: 1px solid #e3e6e9; border-radius: 14px; padding: 1.5rem; text-decoration: none; color: var(--p-dark); transition: border-color .2s, transform .2s; }
.tools-card:hover { border-color: var(--p-gold-line); transform: translateY(-2px); }
.tools-card-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--p-gold-tint); color: var(--p-btn); grid-row: span 2; }
.tools-card-ico svg { width: 22px; height: 22px; }
.tools-card-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #4d6378; }
.tools-card strong { font-size: 1.2rem; font-weight: 600; }
.tools-card-txt, .tools-card-meta, .tools-card em { grid-column: 1 / -1; }
.tools-card-txt { font-size: 0.95rem; line-height: 1.6; color: #4f5961; margin-top: 0.4rem; }
.tools-card-meta { font-size: 0.82rem; color: #5f6b75; }
.tools-card em { font-style: normal; font-weight: 600; font-size: 0.92rem; margin-top: 0.5rem; color: var(--p-btn); }
.tools-note { margin: 1.6rem 0 0; font-size: 0.88rem; color: #5f6b75; max-width: 70ch; }
@media (max-width: 768px) {
  body .jy-menu-tabs { gap: 0.4rem !important; overflow-x: auto; scrollbar-width: none; }
  body .jy-menu-tabs::-webkit-scrollbar { display: none; }
  body .jy-menu-tab { padding: 0.55rem 0.8rem !important; font-size: 0.86rem !important; white-space: nowrap; flex: none; }
}
@media (max-width: 370px) { body .jy-menu-tab { padding: 0.5rem 0.62rem !important; font-size: 0.8rem !important; } }

/* ================= Site-wide consistency ================= */
/* One ink family: slate instead of the older warm near-blacks */
:root { --jy-charcoal: #2E3A46; --jy-ink: #26303A; --jy-ink-soft: #2E3A46; --text: #2B323A; }
body .jy-header-login, body .jy-menu-btn { color: #26303A !important; }
body .jy-header-login:hover, body .jy-header-login:focus-visible { border-color: #26303A !important; }
/* One page width */
body .svc-hero .container, body .svc-section .container { max-width: 1200px !important; }
/* One title banner style */
body .page-hero h1 { font-size: clamp(2.2rem, 4vw, 3rem) !important; }
body .page-hero p, body .page-hero .page-subtitle, body .page-hero .svc-lead { font-family: "Poppins", ui-sans-serif, system-ui, sans-serif !important; }
/* One button shape */
body .btn, body .svc-btn, body .home-btn, body .about-btn, body .submit-btn, body .cf-submit, body form button[type="submit"], body .jyrc .button, body .jy-header-cta, body .jy-header-login { border-radius: 8px !important; }
body .cf-submit, body form button[type="submit"], body .submit-btn { font-size: 0.95rem !important; font-weight: 600 !important; }
/* One card border and surface */
body .tools-card { border-color: #e7e6e1; }
body .tools-list-section { background: #f5f4f0; }
/* Links inside page content follow the slate theme */
body main a:not([class]) { color: var(--p-btn); text-decoration-color: rgba(46,58,70,.4); text-underline-offset: 3px; }
body main a:not([class]):hover { text-decoration-color: var(--p-gold); }
