/* Calculators hub (/calculators) and the standalone birth calculators (/rashi-calculator and siblings).
   Mobile first, the site's orange/cream/maroon palette, no animation. The site theme sets headings, paragraphs and
   buttons with !important under the prefix below, so rules that must win carry the same prefix. */
.bc-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hub ---------- */
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .hub-hero h1,
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .bc-hero h1 { font-size: clamp(1.4rem, 5vw, 2.05rem) !important; line-height: 1.25 !important; margin: 0 0 6px !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .hub-hero p,
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .bc-hero p { margin: 0 !important; font-size: 1rem !important; color: #5d4b3a; }
.hub-hero, .bc-hero { padding-bottom: 12px; }

.hub-tools { display: grid; gap: 10px; margin: 0 0 16px; }
/* The input itself is the one visible box (the theme styles every input); the icon sits inside it. */
.hub-search { position: relative; display: block; }
.hub-search[hidden] { display: block; visibility: hidden; }
.hub-search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: #8a4b2a; stroke-width: 2; stroke-linecap: round; pointer-events: none; z-index: 1; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .hub-search input { display: block; width: 100% !important; box-sizing: border-box; height: 48px !important; min-height: 48px !important; margin: 0 !important; padding: 0 14px 0 44px !important;
    border: 1.5px solid #d9bfa3 !important; border-radius: 12px !important; background: #fff !important; font-size: 1rem !important; color: #2b1a10 !important; box-shadow: none !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .hub-search input:focus { border-color: #e2690d !important; outline: 3px solid rgba(226, 105, 13, .25) !important; outline-offset: 1px; }
.hub-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.hub-chips::-webkit-scrollbar { display: none; }
.hub-chips a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #ecd9c3; background: #fff; color: #6a2313; font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.hub-chips a.is-on { background: #9a3412; border-color: #9a3412; color: #fff; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .hub-chips a { color: #6a2313 !important; text-decoration: none !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .hub-chips a.is-on { color: #fff !important; }
.hub-chips a:focus-visible { outline: 3px solid #f2a65a; outline-offset: 2px; }
.hub-empty { margin: 0; color: #6f6356; }

.hub-group { margin: 0 0 20px; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .hub-group h2 { font-size: 1.15rem !important; margin: 0 0 10px !important; color: #6a2313; }
.hub-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hub-card { display: flex; flex-direction: column; gap: 3px; padding: 12px; background: #fff; border: 1px solid #ecd9c3; border-radius: 14px; text-decoration: none; color: #2b1a10; min-height: 100%; box-sizing: border-box; }
.hub-card:hover { border-color: #e2690d; }
.hub-card:focus-visible { outline: 3px solid #f2a65a; outline-offset: 2px; }
.hub-card[hidden] { display: none; }
.hub-card-ico { width: 40px; height: 40px; border-radius: 12px; background: #fdecd9; color: #c2410c; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.hub-card-ico svg { width: 24px; height: 24px; }
.hub-card strong { font-size: 1rem; line-height: 1.3; color: #4a2a17; }
.hub-card small { font-size: .8rem; color: #8a6d55; }
.hub-card span:last-child { font-size: .86rem; line-height: 1.45; color: #4f3e30; }
.hub-soon { background: #fff8f1; border: 1px dashed #e7c29d; border-radius: 14px; padding: 14px 16px; margin: 0 0 20px; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .hub-soon h2 { font-size: 1.05rem !important; margin: 0 0 4px !important; color: #6a2313; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .hub-soon p { margin: 0 0 8px !important; font-size: .92rem !important; color: #6f6356; }
.hub-soon ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.hub-soon li { padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid #f0dcc6; color: #6f6356; font-size: .88rem; }

/* ---------- Birth calculators ---------- */
.bc-tool { margin: 0 0 16px; }
.bc-form { background: #fff; border: 1px solid #ecd9c3; border-radius: 16px; padding: 16px; }
.bc-form-grid { display: grid; gap: 12px; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .bc-submit { width: 100%; min-height: 50px; justify-content: center; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .bc-form-help { margin: 10px 0 0 !important; font-size: .86rem !important; line-height: 1.45 !important; color: #6f6356; }
.bc-anchor { scroll-margin-top: 90px; }

.bc-result { background: #fff8f1; border: 1px solid #f0cfae; border-radius: 16px; padding: 16px; margin: 0 0 20px; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .bc-result p { margin: 0 !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .bc-result-birth { font-size: .86rem !important; color: #8a6d55; margin-bottom: 6px !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .bc-big { font-size: 1.25rem !important; line-height: 1.35 !important; margin: 0 0 12px !important; color: #4a2a17; font-weight: 600; }
.bc-big strong { color: #9a3412; font-size: 1.35em; }
.bc-big span { font-size: .8em; color: #6f6356; font-weight: 500; }
.bc-big.is-ok strong { color: #2f6b2f; }
.bc-big.is-warn strong { color: #b3261e; }
.bc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.bc-facts > div { background: #fff; border: 1px solid #f1dcc6; border-radius: 12px; padding: 8px 10px; }
.bc-facts .bc-wide { grid-column: 1 / -1; }
.bc-facts dt { font-size: .8rem; color: #8a6d55; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .bc-facts dd { margin: 2px 0 0 !important; font-weight: 700 !important; color: #4a2a17 !important; overflow-wrap: anywhere; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .bc-lead { margin: 0 0 10px !important; font-size: .98rem !important; color: #4f3e30; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .bc-cta { margin: 12px 0 0 !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .bc-cta a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; background: #9a3412 !important; color: #fff !important; font-weight: 700 !important; text-decoration: none !important; }
.bc-cta a:focus-visible { outline: 3px solid #f2a65a; outline-offset: 2px; }
.bc-check { border-radius: 12px; padding: 10px 12px; border: 1px solid #cfe3c9; background: #f4fbf2; }
.bc-check.is-warn { border-color: #f1c2b0; background: #fff3ee; }
.bc-check strong { color: #4a2a17; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .bc-check p { margin: 4px 0 0 !important; font-size: .92rem !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .bc-result-method { margin-top: 12px !important; padding-top: 10px; border-top: 1px dashed #e7c29d; font-size: .82rem !important; line-height: 1.5 !important; color: #6f6356; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .bc-sub { font-size: 1.02rem !important; margin: 14px 0 8px !important; color: #6a2313; }
.bc-again-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bc-again-list form { margin: 0; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .bc-again-btn { width: 100%; min-height: 44px; padding: 6px 10px; border-radius: 10px !important; border: 1.5px solid #e2b48a !important;
    background: #fff !important; color: #7a2e0e !important; font-weight: 700 !important; font-size: .92rem !important; line-height: 1.3 !important; cursor: pointer; text-align: left; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .bc-again-btn:hover { border-color: #e2690d !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .bc-again-btn:focus-visible { outline: 3px solid #f2a65a !important; outline-offset: 2px; }
@media (min-width: 640px) { .bc-again-list { grid-template-columns: repeat(4, 1fr); } }
.bc-cycles { display: grid; gap: 8px; }
.bc-cycle { background: #fff; border: 1px solid #f1dcc6; border-radius: 12px; padding: 8px 12px; }
.bc-cycle.is-current { border-color: #e05a7a; }
.bc-cycle summary { cursor: pointer; min-height: 32px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: #4a2a17; }
.bc-cycle summary span { font-size: .8rem; color: #8a6d55; }
.bc-cycle ul { margin: 6px 0 2px; padding-left: 1.1em; font-size: .9rem; line-height: 1.6; color: #4f3e30; }

.bc-table-wrap { overflow-x: auto; margin: 0 0 8px; }
.bc-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.bc-table th, .bc-table td { border: 1px solid #efdcc8; padding: 6px 8px; text-align: left; vertical-align: top; }
.bc-table thead th { background: #fbeee0; color: #4a2a17; }
.bc-section { margin: 0 0 18px; }
.bc-list { margin: 8px 0; padding-left: 1.2em; line-height: 1.7; }
.bc-small { font-size: .9rem; color: #6f6356; }
.bc-related { display: grid; gap: 10px; margin: 0 0 24px; }
.bc-related h2 { grid-column: 1 / -1; margin: 0; }
.bc-related a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: #fff; border: 1px solid #ecd9c3; border-radius: 14px; text-decoration: none; color: #2b1a10; }
.bc-related a:hover { border-color: #e2690d; }
.bc-related a:focus-visible { outline: 3px solid #f2a65a; outline-offset: 2px; }
.bc-related small { color: #6f6356; }

@media (min-width: 640px) {
    .hub-tools { grid-template-columns: minmax(0, 1fr); }
    .hub-cards { grid-template-columns: repeat(3, 1fr); }
    .bc-form-grid { grid-template-columns: 1fr 1fr; align-items: end; }
    .bc-form-grid .bc-place, .bc-form-grid .bc-submit { grid-column: 1 / -1; }
    .bc-facts { grid-template-columns: repeat(3, 1fr); }
    .bc-related { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
    .hub-cards { grid-template-columns: repeat(4, 1fr); }
}
