/* kbjyotish — public surfaces.
   Scoped under .kbjy-* so nothing here reaches the rest of the shop. */

/* The theme's container runs to 1760px on a wide screen. That is right for a
   grid of products and wrong for pages that are mostly prose and short lists:
   at full width the tool chips and the panchang facts sat in a metre of empty
   card. Capping the measure keeps the lines readable and the page deliberate;
   the grids inside still get enough room for three or four cards. */
.kbjy-hub,
.kbjy-scope {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.kbjy-hub,
.kbjy-scope,
.kbjy-header {
    --kbjy-ink: #253237;
    --kbjy-accent: #80b435;
    --kbjy-accent-dk: #6f9d2d;
    --kbjy-muted: #6b7a80;
    --kbjy-line: #e2e7e8;
    --kbjy-field: #c9cfd4;
    --kbjy-soft: #f6f8f7;
    --kbjy-radius: 10px;
    color: #3a4a4f;
}

/* The page header sits outside .container in this theme, so its contents are
   wrapped in one (.kbjy-header__inner) to line up with the card below at every
   breakpoint -- the theme's container is 540/720/960/1140/1500/1760, which is
   not worth reproducing by hand.

   The theme centres .page-header h1 and this follows that rather than fighting
   it; the lede is centred under the title instead of being left-aligned
   against a centred heading, which is what made it look broken. */
.kbjy-header { margin-bottom: 1.563rem; }
.kbjy-header h1 { color: var(--kbjy-ink); }

.kbjy-lede {
    color: var(--kbjy-muted);
    max-width: 62ch;
    margin: 10px auto 0;
    text-align: center;
    line-height: 1.6;
}

.kbjy-h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--kbjy-ink);
    margin: 0 0 14px;
    text-transform: none;   /* the theme title-cases headings; these are sentences */
}

/* --- the service rails --- */
.kbjy-services-block { margin-bottom: 34px; }

.kbjy-rails {
    display: grid;
    gap: 18px;
    /* Three across on a wide screen, and they fold to one column well before
       the columns get too narrow to read a service title in. */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.kbjy-rail {
    border: 1px solid var(--kbjy-line);
    border-radius: var(--kbjy-radius);
    background: #fff;
    padding: 16px 18px;
}

.kbjy-rail__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--kbjy-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

/* The reason a row is in this column, said quietly. "Paid placement" belongs
   on the page rather than in a policy nobody opens. */
.kbjy-rail__note {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.78rem;
    color: var(--kbjy-muted);
    opacity: 0.85;
}

.kbjy-rail__list { list-style: none; margin: 0; padding: 0; }

.kbjy-rail__item + .kbjy-rail__item { border-top: 1px solid var(--kbjy-line); }

.kbjy-rail__link {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 10px 0;
    color: inherit;
}
.kbjy-rail__link:hover .kbjy-rail__name { color: var(--kbjy-accent-dk); }

.kbjy-rail__name {
    grid-column: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--kbjy-ink);
    line-height: 1.35;
}

.kbjy-rail__meta {
    grid-column: 1;
    font-size: 0.82rem;
    color: var(--kbjy-muted);
}

.kbjy-rail__price {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--kbjy-ink);
    text-align: right;
    /* Short forms only (see KbjyService::priceShort), so this never wraps
       and never competes with the service title for the row. */
    white-space: nowrap;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .kbjy-rails { grid-template-columns: 1fr; }
}

/* --- the two doors --- */
.kbjy-doors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 34px;
}
.kbjy-door {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 24px;
    border: 1px solid var(--kbjy-line);
    border-left: 4px solid var(--kbjy-accent);
    border-radius: var(--kbjy-radius);
    background: #fff;
    text-decoration: none;
}
.kbjy-door:hover { border-left-color: var(--kbjy-ink); }
.kbjy-door__title { font-size: 1.05rem; font-weight: 600; color: var(--kbjy-ink); }
.kbjy-door__note { font-size: 0.9rem; line-height: 1.5; color: var(--kbjy-muted); }

/* --- free tools --- */
.kbjy-tools { margin-bottom: 34px; }
.kbjy-tools__grid { display: flex; flex-wrap: wrap; gap: 8px; }
.kbjy-tool {
    padding: 9px 16px;
    border: 1px solid var(--kbjy-line);
    border-radius: 999px;
    background: var(--kbjy-soft);
    color: var(--kbjy-ink);
    font-size: 0.9rem;
    text-decoration: none;
}
.kbjy-tool:hover { border-color: var(--kbjy-accent); color: var(--kbjy-accent-dk); }

/* --- today --- */
.kbjy-today { margin-bottom: 34px; }
.kbjy-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 20px;
    margin: 0;
    font-size: 0.93rem;
}
.kbjy-facts dt { color: var(--kbjy-muted); font-weight: 600; }
.kbjy-facts dd { margin: 0; }

/* --- rituals --- */
.kbjy-rituals { margin-bottom: 34px; }
.kbjy-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kbjy-chip {
    padding: 6px 14px;
    border: 1px solid var(--kbjy-line);
    border-radius: 999px;
    background: #fff;
    color: var(--kbjy-ink);
    font-size: 0.88rem;
    text-decoration: none;
}
.kbjy-chip:hover { border-color: var(--kbjy-accent); color: var(--kbjy-accent-dk); }

/* --- providers --- */
.kbjy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}
.kbjy-card {
    border: 1px solid var(--kbjy-line);
    border-radius: var(--kbjy-radius);
    padding: 16px 18px;
    background: #fff;
}
.kbjy-card__name { margin: 0 0 4px; font-size: 1rem; font-weight: 600; color: var(--kbjy-ink); text-transform: none; }
.kbjy-card__meta { margin: 0 0 12px; font-size: 0.85rem; color: var(--kbjy-muted); }

/* The theme styles <button class="btn"> but leaves <a class="btn"> bare,
   so both are stated rather than inherited. */
.kbjy-hub .btn.btn-primary,
.kbjy-hub a.btn.btn-primary,
.kbjy-scope .btn.btn-primary,
.kbjy-scope a.btn.btn-primary {
    display: inline-block;
    background: var(--kbjy-accent);
    border: 1px solid var(--kbjy-accent);
    color: #fff;
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.kbjy-hub .btn.btn-primary:hover,
.kbjy-hub a.btn.btn-primary:hover,
.kbjy-scope .btn.btn-primary:hover,
.kbjy-scope a.btn.btn-primary:hover { background: var(--kbjy-accent-dk); border-color: var(--kbjy-accent-dk); color: #fff; }

.kbjy-empty {
    padding: 26px 20px;
    background: var(--kbjy-soft);
    border-radius: var(--kbjy-radius);
    color: var(--kbjy-muted);
    text-align: center;
}

.kbjy-disclaimer {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid var(--kbjy-line);
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--kbjy-muted);
}

@media (max-width: 720px) {
    .kbjy-doors { grid-template-columns: 1fr; }
    .kbjy-door { padding: 18px 16px; }
    .kbjy-facts { grid-template-columns: 1fr; gap: 2px 0; }
    .kbjy-facts dd { margin-bottom: 10px; }
    .kbjy-cards { grid-template-columns: 1fr; }
}
