/* ----------------------------------------------------------------
    Anash.ca — Canvas Theme Custom Overrides
    Add all site-specific overrides here. Loaded after style.css.
----------------------------------------------------------------- */

/* ─────────────────────────────────────────────────────────────────
   Form Controls
   ───────────────────────────────────────────────────────────────── */
.form-control:focus {
    border-color: #ccc;
    box-shadow: none;
}

/* ─────────────────────────────────────────────────────────────────
   Typography — Plus Jakarta Sans
   ───────────────────────────────────────────────────────────────── */
body,
.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6,
p, span, a, li, td, th, label, input, textarea, select, button {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #2a2a2a;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
    color: #1a1a1a;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
}

/* Navigation links */
#header .menu-link {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}


/* ─────────────────────────────────────────────────────────────────
   Hebrew Font
   ───────────────────────────────────────────────────────────────── */
@font-face {
    font-family: sbl_hebrew;
    src: url('/css/Rashi.woff2') format('woff2'),
         url('/css/Rashi.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.hebrew,
.sbl_hebrew {
    font-family: sbl_hebrew, 'arial hebrew', arial, sans-serif;
    font-size: 1.2rem;
}

/* ─────────────────────────────────────────────────────────────────
   Feature Box Cards (Home page)
   ───────────────────────────────────────────────────────────────── */
.feature-box {
    padding: 30px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    background: #fff;
    color: inherit;
}
.feature-box:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    transform: translateY(-3px);
    border-color: #c8c8c8;
    text-decoration: none;
    color: inherit;
}
.feature-box h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.feature-box p {
    font-size: 0.85rem;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────
   Shas / Chalukas HaShas Page
   ───────────────────────────────────────────────────────────────── */

/* Talmud type background colours */
.bavli     { background: #f9ffe9; }
.yerushalmi { background: #e9f2ff; }
.mishnayos  { background: #fff3e9; }

/* Hebrew title & subtitle */
#title    { font-size: 63px; margin-top: 40px; font-family: sbl_hebrew, 'arial hebrew', arial; }
#subtitle { font-size: 40px; margin-top: 20px; font-family: sbl_hebrew, 'arial hebrew', arial; }

/* Legend */
#legend { text-align: center; padding: 40px 0; width: 110px; margin: 0 auto; }
#nameEmailContainer { padding: 7px; text-align: center; }
#submitContainer { text-align: center; padding-top: 10px; }
#submitContainer input { background: #fff; border: 1px solid #940000; }

/* Three-column RTL seder layout */
#chalukah_body { direction: rtl; display: flex; flex-wrap: wrap; align-items: flex-start; }
.seder { width: 33.33%; padding: 5px; margin-bottom: 16px; }
.masechta {
    padding: 10px;
    margin: -8px 0;
    border-radius: 11px 10px 0 0;
    border: 2px solid #d5d5d5;
    border-bottom: unset;
}
.seder > .masechta:last-child { border-bottom: 4px solid #b7b7b7; }
.masechta table, .masechta tr, .masechta td, .masechta th {
    border-collapse: collapse; border-spacing: 0; border: 0;
}
.masechta tr { height: 25px; }

/* Masechta title row */
.masechta-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; direction: ltr; }
.masechta_title { font-size: 16px; text-transform: uppercase; }
.masechta_title.english { font-weight: 600; }
.masechta_title.hebrew  { font-size: 23px; font-family: sbl_hebrew, 'arial hebrew', arial; }

/* Part rows */
.part { display: flex; align-items: baseline; flex-wrap: wrap; direction: ltr; cursor: pointer; color: #595959; }
div.name { flex: 1; min-width: 0; text-transform: uppercase; font-weight: 300; }
div.name > span { display: inline-block; }
div.name.fullname { flex: 0 0 100%; }
.completely div.name { flex: 0 0 100%; }
.signup { flex: 0 0 27px; }
.perokim { white-space: nowrap; margin-left: auto; }
.part-progress-placeholder { flex: 0 0 100%; }

.seder_title.hebrew { text-align: center; font-size: 30px; margin: 0 0 24px; color: #949494; }
.not-divided .part.taken, .not-divided .masechta.taken { opacity: 0.5; }

@media (max-width: 400px)  { .seder { width: 100%; } }
@media (min-width: 401px) and (max-width: 668px) { .seder { width: 50%; } }

/* Shas signup form popup */
#form_fields {
    box-shadow: 0 0 3px 3px #999;
    display: none;
    padding-bottom: 10px;
    position: fixed;
    top: 10px;
    right: 10px;
    background: #fff;
    z-index: 9999;
}

/* ── Progress bars ── */
.global-progress-wrap {
    margin: 0 0 20px;
    padding: 10px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.global-progress-wrap .label { font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.progress-bar-outer {
    background: transparent;
    border-radius: 4px;
    height: 14px;
    overflow: hidden;
    transform: scaleX(-1);
    position: relative;
}
.progress-bar-fill {
    background: #90bc8b;
    height: 100%;
    border-radius: 4px;
    transition: width .3s;
}
.progress-bar-label {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 600; color: #444;
    transform: scaleX(-1); pointer-events: none;
}
.progress-bar-fill.yerushalmi-fill { background: #85aad4; }
.progress-bar-fill.mishnayos-fill  { background: #cda47a; }
.progress-pct { font-size: 12px; color: #555; margin-top: 3px; }
.part-progress {
    height: 3px; background: transparent; border-radius: 2px;
    margin-top: 2px; overflow: hidden; transform: scaleX(-1);
}
.part-progress-fill {
    height: 100%; background: #90bc8b; border-radius: 2px; transition: width .3s;
}
.part-progress-fill.yerushalmi-fill { background: #85aad4; }
.part-progress-fill.mishnayos-fill  { background: #cda47a; }
.masechta-progress-wrap { margin: 3px 0 7px; }
.masechta-progress-wrap .progress-bar-outer { height: 8px; }
.participant-progress {
    margin: 2px 0 4px; display: flex; align-items: center; gap: 6px; font-size: 12px;
}
.participant-progress .p-name {
    flex: 0 0 auto; max-width: 120px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    text-transform: uppercase; font-weight: 300;
}
.participant-progress .progress-bar-outer { flex: 1; }
.participant-progress .p-pct { flex: 0 0 30px; text-align: right; }

/* ── Personal mode ── */
.personal-mode { max-width: 680px; margin: 0 auto; padding: 10px 0; }
.personal-mode h2 {
    font-family: sbl_hebrew, 'arial hebrew', arial;
    font-size: 36px; text-align: center; margin-bottom: 4px;
}
.personal-mode .personal-email { text-align: center; font-size: 13px; color: #666; margin-bottom: 20px; }
.personal-mode .view-full-link { display: block; text-align: center; margin-bottom: 20px; }
.personal-masechta {
    border: 2px solid #d5d5d5; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
}
.personal-masechta .pm-title {
    display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px;
}
.personal-masechta .pm-title .english { font-weight: 700; font-size: 16px; text-transform: uppercase; }
.personal-masechta .pm-title .hebrew { font-family: sbl_hebrew, 'arial hebrew', arial; font-size: 22px; }
.personal-masechta .pm-masechta-progress { margin-bottom: 10px; }
.slider-group { margin: 8px 0 12px; }
.slider-range-labels {
    display: flex; justify-content: space-between;
    font-family: sbl_hebrew, 'arial hebrew', arial;
    font-size: 14px; color: #777; margin-bottom: 2px;
}
.daf-slider-wrap { position: relative; }
.daf-slider { width: 100%; cursor: pointer; accent-color: #4a9040; direction: rtl; }
.slider-current-label {
    text-align: center;
    font-family: sbl_hebrew, 'arial hebrew', arial;
    font-size: 17px; color: #333; margin-top: 3px; min-height: 22px;
}
.slider-group .type-label { font-size: 11px; color: #999; text-align: center; }
.personal-mode .bottom-link { text-align: center; margin-top: 18px; }
.personal-no-results { text-align: center; padding: 40px; color: #888; font-size: 15px; }

/* ── Shas print ── */
@media print {
    #header, footer, .noprint { display: none !important; }
    #chalukah_header { display: none; }
    .shas-page-wrap { padding-top: 0 !important; }
    .masechta { background: none !important; zoom: 1.2; }
    .seder_title.hebrew { display: none; }
    #chalukah_body { width: 960px; }
    .part { margin-top: 3px; }
}

/* ─────────────────────────────────────────────────────────────────
   Accordion overrides (Directory + Davening)
   ───────────────────────────────────────────────────────────────── */
#results .accordion-item,
#yortzheitAccordion .accordion-item {
    border-color: #e5e5e5;
    margin-bottom: 4px;
    border-radius: 6px !important;
    overflow: hidden;
}
#results .accordion-item:not(:first-of-type),
#yortzheitAccordion .accordion-item:not(:first-of-type) {
    border-top: 1px solid #e5e5e5;
}
#results .accordion-button,
#yortzheitAccordion .accordion-button {
    font-size: 0.95rem;
    font-weight: 500;
    background-color: #fff;
    color: #333;
    border-radius: 6px !important;
    padding: 0.75rem 1.25rem;
}
#results .accordion-button:not(.collapsed),
#yortzheitAccordion .accordion-button:not(.collapsed) {
    background-color: #f8f8f8;
    color: #111;
    box-shadow: inset 0 -1px 0 #e5e5e5;
}
#results .accordion-button:focus,
#yortzheitAccordion .accordion-button:focus {
    box-shadow: none;
    border-color: #e5e5e5;
}
#results .accordion-button::after,
#yortzheitAccordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23555'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
#results .accordion-button:not(.collapsed)::after,
#yortzheitAccordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
#results .accordion-body,
#yortzheitAccordion .accordion-body {
    background-color: #fff;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

/* ─────────────────────────────────────────────────────────────────
   Footer (dark) — widget link colours
   ───────────────────────────────────────────────────────────────── */
#footer .widget_links ul { list-style: none; padding: 0; margin: 0; }
#footer .widget_links ul li { margin-bottom: 6px; }
#footer .widget_links ul li a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
}
#footer .widget_links ul li a:hover { color: #fff; }
#footer h4 {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}
