/* Chassidus Inside Out -- additions on top of Dvory's design (site.css), Rob 13.10.2026.
   Only what her build did not have: auth states, Google slot, maamar page, admin.
   Colours are taken from her palette in site.css. */

[hidden] { display: none !important; }
.maybe-in [data-view="out"] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* hero image is a <picture> now (webp + jpg fallback) */
.hero-photo picture { display: block; width: 100%; height: 100%; }

/* header "Sign out" is a button styled like her header links */
.header-action-button { background: transparent; color: inherit; cursor: pointer; font: inherit; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.header-action-button small { opacity: .8; }

.course-note small a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Continue with Google ---------- */
.google-slot { margin: 0 0 28px; }
.google-button {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px;
  background: #fff; color: #3c4043; border: 1px solid #d4c9b8; font-size: 15px; letter-spacing: .02em;
  text-transform: none; cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.google-button svg { flex: none; }
.google-button:hover { border-color: #9a8465; }
.google-button[aria-disabled="true"] { cursor: not-allowed; opacity: .6; }
.google-button[aria-disabled="true"]:hover { border-color: #d4c9b8; }
.google-button small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #766b5c; border: 1px solid #d4c9b8; padding: 2px 7px; }
.register-page .registration-form .google-button span, .register-page .registration-form .google-button small { font-family: inherit; }
.or-divider { display: flex; align-items: center; gap: 14px; color: #766b5c; font-size: .875rem; margin: 22px 0 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid #ded5c7; }
.google-slot-dark { margin: 4px 0 18px; }
.google-slot-dark .or-divider { color: #bfb6a4; margin: 0 0 16px; }
.google-slot-dark .or-divider::before, .google-slot-dark .or-divider::after { border-color: #68645b; }
.google-slot-dark .google-button { background: #f4f1e9; border-color: #68645b; }
.google-slot-dark .google-button small { color: #5b564c; border-color: #a49c8c; }

.complete-note { background: #f3ebdd; padding: 22px 24px; margin-bottom: 36px; }
.complete-note .eyebrow { margin-bottom: 8px; }
.complete-note p:last-child { margin: 0; line-height: 1.6; }
.registration-form .form-error { margin: 0 0 16px; font-size: .95rem; }
.registration-form .privacy-note a, .account-signin-card a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- dashboard (signed-in /my-learning and /maamar) ---------- */
.dashboard-shell .brand-plant { width: 52px; height: 54px; }
.dash-nav a {
  color: #59645b; text-align: left; background: 0 0; border: 0; align-items: center; gap: 13px; padding: 13px 12px;
  font-size: 13px; display: flex; line-height: 1.35;
}
.dash-nav a svg { stroke-width: 1.4px; width: 18px; flex: none; }
.dash-nav a:hover { color: #416c38; background: #dceff2; }
.dash-nav .dash-nav-back { margin-top: 18px; border-top: 1px solid #59899d2e; padding-top: 18px; }
.dash-nav button { font: inherit; font-size: 13px; }
.learner-card button { background: transparent; border: 0; color: inherit; cursor: pointer; margin-left: auto; padding: 4px; }
.link-button { background: transparent; border: 0; color: #46563b; cursor: pointer; font: inherit; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.dash-top .eyebrow { margin-bottom: 14px; }
.dash-top h1 { line-height: 1.05; }
.maamar-he { font-family: "Frank Ruhl Libre", "David", "Times New Roman", serif; font-size: 1.35rem; color: #5a504b; margin: 14px 0 0; }
.admin-banner { margin: -30px 0 24px; font-size: .9rem; }
.admin-banner a { color: #41663e; text-decoration: underline; text-underline-offset: 3px; }
.continue-art > span { position: relative; font-size: 22px; }
.continue-card .button { display: inline-flex; }
.continue-card h2 { line-height: 1.2; margin-bottom: 10px; }
.page-error { text-align: left; font-size: .95rem; margin: 0 0 20px; }

.maamar-library { margin-top: 25px; min-height: 0; }
.maamar-library > h2 { margin-bottom: 14px; }
.maamar-list { display: grid; gap: 16px; margin-top: 30px; }
.maamar-item {
  display: grid; gap: 6px; padding: 26px 28px; border: 1px solid #dbe2d4; background: #fbfdf8;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.maamar-item:hover { border-color: #9cb77d; transform: translateY(-2px); box-shadow: 0 14px 34px #336a5914; }
.maamar-item-he { font-family: "Frank Ruhl Libre", "David", "Times New Roman", serif; font-size: 1.2rem; color: #5a504b; }
.maamar-item strong { font-family: Georgia, serif; font-weight: 400; font-size: 1.5rem; line-height: 1.3; color: var(--ink); }
.maamar-item em { color: #687068; font-family: Georgia, serif; }
.maamar-item small { color: #798079; font-size: .85rem; letter-spacing: .02em; }
.maamar-item-go { display: inline-flex; align-items: center; gap: 8px; color: #46563b; font-size: .9rem; margin-top: 6px; }
.maamar-item-go svg { width: 15px; }

.learning-panel > .eyebrow { margin-bottom: 12px; }
.learning-panel > h2 { margin-bottom: 18px; }
.panel-intro { margin: 0 0 30px; }
.empty-state { border: 1px dashed #cbdde0; background: #f7fbfc; padding: 34px; color: #5f675f; font-family: Georgia, serif; line-height: 1.7; }
.empty-state p { margin: 0; }
.empty-state p + p { margin-top: 6px; }

.recording > button { cursor: pointer; }
.recording strong { font-family: Georgia, serif; font-weight: 400; font-size: 1.15rem; }
.rec-media { width: 100%; margin-top: 10px; max-height: 420px; background: #000; }
audio.rec-media { background: transparent; height: 40px; }

.document-page h3 { font-family: "Frank Ruhl Libre", "David", "Times New Roman", serif; font-size: clamp(28px, 4vw, 40px); line-height: 1.4; margin: 30px 0; }
.document-page .button { display: inline-flex; }
.doc-download { justify-content: center; margin: 22px 0 0; }
.doc-download:hover { color: #41663e; }

/* questions */
.draft-note { background: #fbf7ef; border: 1px solid #e3d8c3; padding: 16px 20px; color: #5f675f; font-size: .95rem; line-height: 1.6; max-width: 800px; }
.draft-note b { color: #887359; }
.quiz-summary { max-width: 800px; margin: 10px 0 10px; }
.quiz-summary .progress-line { margin-top: 10px; }
.quiz-summary small { color: #6c746d; }
.quiz-summary a { color: #41663e; text-decoration: underline; text-underline-offset: 3px; }
.quiz-section h3 { font-family: Georgia, serif; font-size: 1.6rem; margin: 50px 0 0; color: #41663e; }
.quiz-section h3 span { color: #887359; font-size: 1.1rem; }
.quiz-question { margin: 18px 0; padding: 26px 0; scroll-margin-top: 30px; }
.quiz-question > strong { line-height: 1.45; font-size: 1.2rem; }
.quiz-question textarea {
  width: 100%; font: inherit; font-size: 1rem; line-height: 1.55; background: #f3f9fa; border: 1px solid #cbdde0; padding: 16px; resize: vertical;
}
.quiz-question textarea:focus { outline: 2px solid #9cb77d; outline-offset: 1px; }
.reveal-button { width: auto; justify-self: start; border: 0; cursor: pointer; }
.mc-group { display: grid; gap: 10px; }
.mc-group label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.5; font-size: .95rem; background: #fff; }
.mc-group input { margin-top: 4px; flex: none; }
.mc-group label.is-correct { border-color: #6b9648; background: #eef6e6; }
.mc-group label.is-wrong { border-color: #c98a7e; background: #f8ece8; }
.mc-feedback { margin: 4px 0 0; font-size: .9rem; }
.mc-feedback.is-correct { color: #41663e; }
.mc-feedback.is-wrong { color: #9d443b; }
.model-answer { border-left: 3px solid #9cb77d; background: #f7fbf3; padding: 16px 20px; }
.model-answer small { letter-spacing: .15em; font-size: 10px; color: #6c7a62; }
.model-answer p { margin: 8px 0 0; line-height: 1.7; color: #3f4343; }
.saved-toast { z-index: 50; }

/* ---------- admin ---------- */
.admin-body { max-width: 980px; margin: 0 auto; padding: 0 34px 90px; }
.admin-box { background: #ffffffb8; border: 1px solid #dbe2d4; padding: 30px; max-width: 560px; line-height: 1.6; }
.admin-box a { text-decoration: underline; }
.admin-box .button { justify-self: start; border: 0; cursor: pointer; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; font-family: Georgia, serif; font-size: 1.2rem; }
.admin-csv { width: auto; }
.admin-cards { display: grid; gap: 16px; }
.admin-card { background: #ffffffd9; border: 1px solid #dbe2d4; padding: 24px 26px; }
.admin-card header { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; border-bottom: 1px solid #e6ebe0; padding-bottom: 12px; margin-bottom: 12px; }
.admin-card header strong { font-family: Georgia, serif; font-weight: 400; font-size: 1.35rem; }
.admin-card header small { color: #6c746d; }
.admin-card dl { display: grid; grid-template-columns: 220px 1fr; gap: 8px 18px; margin: 0; font-size: .95rem; }
.admin-card dt { color: #6c746d; }
.admin-card dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .admin-banner { margin-top: -20px; }
}
@media (max-width: 560px) {
  .admin-body { padding: 0 18px 70px; }
  .admin-card dl { grid-template-columns: 1fr; gap: 2px; }
  .admin-card dd { margin-bottom: 10px; }
  .admin-toolbar { flex-direction: column; align-items: flex-start; }
  .maamar-item { padding: 22px 20px; }
  .quiz-section h3 { margin-top: 36px; }
}
.google-button, .account-signin-card a.google-button { text-decoration: none !important; }
.dash-brand .brand-name { font-size: 16px; } .dash-brand { gap: 8px; }
