/* Maslul – small layer on top of theme.json. Logical properties keep it right for RTL. */

.maslul-eyebrow { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.6px; margin: 0; }

/* Header */
.maslul-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.maslul-header .wp-block-navigation a { color: var(--wp--preset--color--ink); text-decoration: none; font-weight: 500; }
.maslul-header .wp-block-navigation a:hover { color: var(--wp--preset--color--link); }
.maslul-logo img { height: 50px; width: auto; display: block; }

/* The route: road on the inline-start side, stations numbered by a CSS counter */
.maslul-route { position: relative; padding-inline-start: 64px; counter-reset: station; }
.maslul-route::before { content: ""; position: absolute; inset-inline-start: 14px; top: 10px; bottom: 10px; width: 18px; background: var(--wp--preset--color--navy-soft); border-radius: 9px; }
.maslul-route::after { content: ""; position: absolute; inset-inline-start: 22px; top: 22px; bottom: 22px; border-inline-start: 2px dashed var(--wp--preset--color--yellow); }
.maslul-station { position: relative; counter-increment: station; z-index: 1; }
.maslul-station::before { content: counter(station); position: absolute; inset-inline-start: -64px; top: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--wp--preset--color--cyan); color: var(--wp--preset--color--navy); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }
.maslul-station p { margin: 0; }
.maslul-station a { color: #fff; text-decoration: none; }
.maslul-station a:hover { color: var(--wp--preset--color--yellow); }

/* Latest list */
.maslul-latest .wp-block-post { padding-block: 1.1rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.maslul-latest .wp-block-post-title { margin: 0.25rem 0; }
.maslul-latest .wp-block-post-title a { text-decoration: none; }

/* Topics: categories inline */
.maslul-topics ul.wp-block-categories-list { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; list-style: none; margin: 0; padding: 0; font-size: 1.0625rem; }

/* "בקצרה" box inside articles */
.maslul-tldr { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; }
.maslul-tldr > :first-child { margin-top: 0; }

/* Article meta */
.maslul-meta, .maslul-meta a { color: var(--wp--preset--color--muted); font-size: 0.9375rem; }

/* Tables in articles scroll inside their own box */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th { background: var(--wp--preset--color--paper); }
.wp-block-table td, .wp-block-table th { border: 1px solid var(--wp--preset--color--line); padding: 0.6rem 0.8rem; }

:focus-visible { outline: 3px solid var(--wp--preset--color--cyan); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Footer link lists */
.maslul-plainlist { list-style: none; padding-inline-start: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.maslul-plainlist a { text-decoration: none; }
.maslul-plainlist a:hover { text-decoration: underline; }

/* Accessibility toolbar */
.a11y-wrap { position: fixed; inset-inline-start: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 9999; font-family: var(--wp--preset--font-family--heebo); }
.a11y-open { width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: var(--wp--preset--color--navy); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(7, 31, 66, .3); }
.a11y-open:hover { background: var(--wp--preset--color--link); }
.a11y-panel { position: absolute; bottom: 64px; inset-inline-start: 0; width: 230px; background: #fff; color: var(--wp--preset--color--ink); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 10px 30px rgba(7, 31, 66, .2); }
.a11y-panel[hidden] { display: none; }
.a11y-title { margin: 0 0 4px; font-weight: 800; font-size: 1.05rem; }
.a11y-row { display: flex; gap: 8px; }
.a11y-row button { flex: 1; }
.a11y-panel button { min-height: 44px; border: 1px solid var(--wp--preset--color--line); border-radius: 8px; background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); font: inherit; font-size: 0.95rem; cursor: pointer; text-align: center; }
.a11y-panel button[aria-pressed="true"] { background: var(--wp--preset--color--navy); color: #fff; border-color: var(--wp--preset--color--navy); }
.a11y-panel a { text-align: center; font-size: 0.9rem; padding-top: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
html.a11y-contrast body, html.a11y-contrast .has-background, html.a11y-contrast .wp-block-group { background: #000 !important; color: #fff !important; }
html.a11y-contrast a, html.a11y-contrast a * { color: #FFE600 !important; }
html.a11y-contrast .has-text-color, html.a11y-contrast p, html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3, html.a11y-contrast li, html.a11y-contrast td, html.a11y-contrast th { color: #fff !important; }
html.a11y-contrast .a11y-panel, html.a11y-contrast .a11y-panel button { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; outline: 1px dashed currentColor; outline-offset: 2px; }
html.a11y-font body, html.a11y-font body * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: 0.02em !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* Cookie consent bar */
.consent-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 9998; background: var(--wp--preset--color--navy-deep); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px calc(14px + env(safe-area-inset-bottom, 0px)); padding-inline-start: max(84px, env(safe-area-inset-right, 0px)); padding-inline-end: max(16px, env(safe-area-inset-left, 0px)); font-size: 0.95rem; box-shadow: 0 -6px 20px rgba(7, 31, 66, .25); }
.consent-bar p { margin: 0; flex: 1 1 320px; min-width: 0; line-height: 1.6; }
.consent-bar a { color: var(--wp--preset--color--cyan); }
.consent-actions { display: flex; gap: 10px; }
.consent-actions button { min-height: 44px; padding: 0 18px; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; border: 2px solid var(--wp--preset--color--yellow); }
.consent-actions button[data-c="yes"] { background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--navy); }
.consent-actions button[data-c="no"] { background: transparent; color: #fff; }

/* Article elements */
.maslul-warning { background: #FFF8D6; border: 1px solid #E9D45A; border-radius: 12px; }
.maslul-warning > :first-child { margin-top: 0; }
.maslul-checklist ul { list-style: none; padding-inline-start: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.maslul-checklist li { position: relative; padding-inline-start: 2rem; }
.maslul-checklist li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.35em; width: 1.15rem; height: 1.15rem; border-radius: 4px; border: 2px solid var(--wp--preset--color--link); }
.maslul-diagram { margin-block: 2rem; text-align: center; }
.maslul-diagram svg { width: 100%; max-width: 720px; height: auto; }
.maslul-diagram figcaption { color: var(--wp--preset--color--muted); font-size: 0.9375rem; margin-top: 0.5rem; }
.maslul-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 1rem; }
.maslul-stat .wp-block-group { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 1rem 1.25rem; }
.maslul-stat p:first-child { font-size: 1.75rem; font-weight: 800; margin: 0; font-variant-numeric: tabular-nums; }
.maslul-stat p:last-child { margin: 0; color: var(--wp--preset--color--muted); font-size: 0.9375rem; }

/* Etsy fee calculator */
.maslul-etsy-calc { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 1.25rem 1.5rem; margin-block: 2rem; }
.ec-grid { display: grid; grid-template-columns: minmax(0, 1fr) 9rem; gap: 0.6rem 1rem; align-items: center; }
.ec-grid input { min-height: 44px; border: 1px solid var(--wp--preset--color--line); border-radius: 8px; padding: 0 0.6rem; font: inherit; width: 100%; box-sizing: border-box; }
.ec-check { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 0.75rem; font-size: 0.95rem; }
.ec-check input { width: 1.2rem; height: 1.2rem; margin-top: 0.3rem; }
.ec-out table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-variant-numeric: tabular-nums; }
.ec-out th, .ec-out td { padding: 0.5rem 0.25rem; border-bottom: 1px solid var(--wp--preset--color--line); text-align: start; font-weight: 400; }
.ec-out td { text-align: end; }
.ec-out .ec-sum th, .ec-out .ec-sum td { font-weight: 700; }
.ec-out .ec-net th, .ec-out .ec-net td { font-weight: 800; color: var(--wp--preset--color--navy); border-bottom: 0; font-size: 1.1rem; }
.ec-note { color: var(--wp--preset--color--muted); font-size: 0.85rem; margin: 0.75rem 0 0; }
@media (max-width: 480px) { .ec-grid { grid-template-columns: minmax(0, 1fr); } }

/* Breadcrumbs */
.maslul-crumbs, .maslul-crumbs a { font-size: 0.875rem; color: var(--wp--preset--color--muted); }

/* Footer social links */
.maslul-social { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-top: 0.75rem; }
.maslul-social a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; text-decoration: none; color: var(--wp--preset--color--on-navy); }
.maslul-social a:hover { color: var(--wp--preset--color--yellow); }

/* Knowledge center: header, topic chips, article cards */
.maslul-archive-head { margin-bottom: 2rem; }
.maslul-archive-head h1, .maslul-archive-head .wp-block-query-title { margin: 0; }
.maslul-chips { gap: 0.5rem; align-items: center; margin-top: 0.5rem; }
.maslul-chips ul.wp-block-categories-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.maslul-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.maslul-chips a:hover { border-color: var(--wp--preset--color--link); color: var(--wp--preset--color--link); }
.maslul-chips .current-cat > a, body.blog .maslul-chips .maslul-chip-all { background: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--navy); color: #fff; }

.maslul-cards .wp-block-post-template { gap: 1.5rem; }
.maslul-cards .wp-block-post { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.maslul-cards .wp-block-post:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11, 46, 94, 0.12); }
.maslul-card-img { margin: 0 !important; background: var(--wp--preset--color--navy); }
.maslul-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.maslul-card-body { padding: 1.1rem 1.25rem 1.3rem; flex: 1; }
.maslul-tag { margin: 0; }
.maslul-tag a { display: inline-block; background: #E3F0FA; color: var(--wp--preset--color--link); border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.maslul-card-title { margin: 0; font-size: 1.25rem; line-height: 1.35; font-weight: 800; }
.maslul-card-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.maslul-card-title a:hover { color: var(--wp--preset--color--link); }
.maslul-card-excerpt p { margin: 0; color: var(--wp--preset--color--muted); font-size: 0.98rem; line-height: 1.6; }
.maslul-card-excerpt .wp-block-post-excerpt__more-text { display: none; }
.maslul-card-meta { margin-top: auto; font-size: 0.85rem; }
.maslul-card-meta p { margin: 0; }
@media (min-width: 700px) {
  body:not(.paged) .maslul-cards .wp-block-post:first-child { grid-column: span 2; }
  body:not(.paged) .maslul-cards .wp-block-post:first-child .maslul-card-title { font-size: 1.6rem; }
}
.maslul-pagination { margin-top: 2rem; }

/* Topics bar under the main header */
.maslul-topicnav { background: #EEF4FB; border-bottom: 1px solid var(--wp--preset--color--line); position: relative; }
.maslul-topicnav ul { list-style: none; margin: 0 auto; padding-block: 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); max-width: 1200px; display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.maslul-topicnav ul::-webkit-scrollbar { display: none; }
.maslul-topicnav li { flex: none; }
.maslul-topicnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem; color: var(--wp--preset--color--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; }
.maslul-topicnav a:hover { color: var(--wp--preset--color--link); border-bottom-color: var(--wp--preset--color--cyan); }
.maslul-topicnav::after { content: ""; position: absolute; inset-block: 0; left: 0; width: 32px; background: linear-gradient(to right, #EEF4FB, rgba(238, 244, 251, 0)); pointer-events: none; }
@media (min-width: 1240px) { .maslul-topicnav::after { display: none; } }
body.category-dropshipping .tn-dropshipping, body.in-cat-dropshipping .tn-dropshipping,
body.category-etsy .tn-etsy, body.in-cat-etsy .tn-etsy,
body.category-ebay .tn-ebay, body.in-cat-ebay .tn-ebay,
body.category-amazon .tn-amazon, body.in-cat-amazon .tn-amazon,
body.category-shopify .tn-shopify, body.in-cat-shopify .tn-shopify,
body.category-digital-products .tn-digital-products, body.in-cat-digital-products .tn-digital-products,
body.category-youtube .tn-youtube, body.in-cat-youtube .tn-youtube,
body.category-crypto .tn-crypto, body.in-cat-crypto .tn-crypto,
body.category-affiliate .tn-affiliate, body.in-cat-affiliate .tn-affiliate,
body.category-freelance .tn-freelance, body.in-cat-freelance .tn-freelance,
body.page-ai .tn-ai-tools, body.category-ai-tools .tn-ai-tools, body.in-cat-ai-tools .tn-ai-tools,
body.category-israel-business .tn-israel-business, body.in-cat-israel-business .tn-israel-business,
body.category-product-research .tn-product-research, body.in-cat-product-research .tn-product-research,
body.category-digital-assets .tn-digital-assets, body.in-cat-digital-assets .tn-digital-assets { color: var(--wp--preset--color--navy); font-weight: 700; border-bottom-color: var(--wp--preset--color--navy); }

/* AI hub */
.maslul-ai-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1rem; }
.maslul-ai-tile { display: flex; flex-direction: column; gap: 0.5rem; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 1.25rem; text-decoration: none; color: var(--wp--preset--color--ink); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.maslul-ai-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11, 46, 94, 0.12); color: var(--wp--preset--color--ink); }
.maslul-ai-tile svg { width: 40px; height: 40px; color: var(--wp--preset--color--link); }
.maslul-ai-tile strong { font-size: 1.15rem; }
.maslul-ai-tile span { color: var(--wp--preset--color--muted); font-size: 0.95rem; line-height: 1.55; }
.maslul-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1rem; }
.maslul-steps li { counter-increment: s; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 1.25rem 1.25rem 1.25rem; position: relative; }
.maslul-steps li::before { content: counter(s); display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--navy); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 0.6rem; }
.maslul-steps strong { display: block; font-size: 1.1rem; margin-bottom: 0.25rem; }

/* Topics bar: on wider screens every topic is visible (wraps to a second line if needed); phones keep sideways scrolling. */
@media (min-width: 768px) {
  .maslul-topicnav ul { flex-wrap: wrap; overflow-x: visible; column-gap: 0.1rem; }
  .maslul-topicnav a { padding: 0 0.65rem; min-height: 42px; font-size: 0.92rem; }
  .maslul-topicnav::after { display: none; }
}
