/* Anshei Lubavitch Weekly Bulletin */
.alb-wrap, .alb, .alb-print-body {
  --alb-ink: #1c2430;
  --alb-muted: #5b6676;
  --alb-blue: #1c3a5d;
  --alb-navy: #1c3a5d;
  --alb-gold: #fcd062;
  --alb-rule: #cfd8e3;
  --alb-soft: #eef3f9;
  --alb-flame: #a8701a;
  --alb-paper: #ffffff;
}
.alb { color: var(--alb-ink); background: var(--alb-paper); font-family: "Assistant", "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.45; max-width: 860px; margin: 0 auto; }
.alb * { box-sizing: border-box; }
.alb h2, .alb h3, .alb h4, .alb p, .alb ul { margin: 0; padding: 0; }
.alb ul { list-style: none; }
.alb-art { display: block; width: 100%; height: auto; margin-bottom: 12px; }

/* Header: English on the left, Hebrew on the right */
.alb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 12px; border-bottom: 3px solid var(--alb-blue); }
.alb-kicker { color: var(--alb-blue); font-weight: 600; font-size: .85em; }
.alb .alb-head h2 { font-family: "Frank Ruhl Libre", Georgia, serif; font-weight: 700; font-size: 2.3em; line-height: 1.05; color: var(--alb-ink); letter-spacing: -.01em; }
.alb-date { color: var(--alb-muted); margin-top: 2px; }
.alb-head-he { text-align: right; font-family: "Frank Ruhl Libre", "David", serif; display: flex; flex-direction: column; align-items: flex-end; }
.alb-parsha-he { font-size: 1.7em; font-weight: 700; line-height: 1.1; color: var(--alb-blue); }

/* Masthead, recreated from the Canva bulletin */
.alb-mast { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.alb-mast-logo { display: block; width: 96px; height: auto; }
.alb-mast-main { padding-top: 4px; min-width: 0; }
.alb-mast-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--alb-navy); font-family: "Frank Ruhl Libre", "David", serif; font-size: .95em; }
.alb-mast-hd { direction: rtl; unicode-bidi: isolate; }
.alb-mast-bh { margin-left: auto; }
.alb-mast-title { display: block; width: 100%; height: auto; margin: 4px 0 8px; }
.alb-mast-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; border-top: 3px solid var(--alb-gold); padding-top: 6px; color: var(--alb-navy); font-weight: 700; font-size: .8em; letter-spacing: .07em; text-transform: uppercase; }
.alb-mast-he { font-family: "Frank Ruhl Libre", "David", serif; font-size: 1.2em; letter-spacing: 0; text-transform: none; direction: rtl; unicode-bidi: isolate; }
.alb-mast-sep { color: #b8892f; font-weight: 400; }
.alb-rabbis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 16px; margin: 14px 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--alb-rule); text-align: center; }
.alb-rb { display: flex; flex-direction: column; min-width: 0; }
.alb-rb-lead { grid-column: 1 / -1; padding-bottom: 4px; }
.alb-rb-role { font-size: .7em; letter-spacing: .09em; text-transform: uppercase; color: var(--alb-muted); }
.alb-rb-name { font-weight: 700; font-size: .92em; color: var(--alb-navy); }
.alb-rb-lead .alb-rb-name { font-family: "Frank Ruhl Libre", Georgia, serif; font-size: 1.3em; }
@media (max-width: 640px) {
  .alb-mast { grid-template-columns: 62px 1fr; gap: 12px; }
  .alb-mast-logo { width: 62px; }
  .alb-mast-bottom { font-size: .72em; }
  .alb-rabbis { grid-template-columns: 1fr; }
}

/* The three times people look for first */
.alb-glance { display: flex; margin: 14px 0 18px; background: var(--alb-soft); border-radius: 6px; }
.alb-g { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 10px 6px; }
.alb-g + .alb-g { border-left: 1px solid var(--alb-rule); }
.alb-g-t { font-family: "Frank Ruhl Libre", Georgia, serif; font-size: 1.75em; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.alb-g-l { font-size: .85em; color: var(--alb-muted); }
.alb-g.is-candles .alb-g-t { color: var(--alb-flame); }
.alb-g.is-changed:not(.is-candles) .alb-g-t { color: var(--alb-flame); }

.alb-warn { background: #fff4e0; padding: 8px 12px; border-radius: 4px; margin-bottom: 12px; }
.alb-message { border-left: 3px solid var(--alb-flame); padding: 4px 0 4px 14px; margin-bottom: 18px; }
.alb-message p + p { margin-top: .5em; }

/* Two tight columns */
.alb-cols { column-count: 2; column-gap: 36px; }
.alb-sec { break-inside: avoid; margin-bottom: 16px; }
.alb-sec.alb-wide { column-span: all; margin-top: 4px; }
.alb .alb-sec h3 { font-family: "Frank Ruhl Libre", Georgia, serif; font-size: 1.05em; font-weight: 700; color: var(--alb-blue); border-bottom: 1px solid var(--alb-rule); padding-bottom: 2px; margin-bottom: 4px; }

/* Name ........ time */
.alb-rows li { display: flex; align-items: baseline; padding: 1px 0; }
.alb-rows li::after { content: ""; order: 2; flex: 1 1 12px; border-bottom: 1px dotted #9aa6b5; margin: 0 6px 4px; min-width: 12px; }
.alb-l { order: 1; }
.alb-l em { font-style: normal; color: var(--alb-muted); font-size: .9em; }
.alb-t { order: 3; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.alb-rows li.is-changed .alb-t { color: var(--alb-flame); }
.alb-plain li { padding: 1px 0; }
.alb-sponsors strong { color: var(--alb-blue); font-weight: 600; margin-right: 4px; }
.alb-parnes strong { color: var(--alb-blue); font-weight: 600; margin-right: 4px; white-space: nowrap; }
/* Parnes Hashanah: an arched plaque, like the arch over the Aron Kodesh */
.alb-pnh { --alb-gilt: #c9a24a; --alb-gilt-ink: #9a7326; max-width: 560px; margin: 2px auto 22px; }
.alb-pnh-frame { position: relative; text-align: center; padding: 58px 40px 26px; border: 2px solid var(--alb-gilt); border-radius: 50% 50% 6px 6px / 124px 124px 6px 6px;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, #fff6d4 0%, rgba(255, 246, 212, 0) 100%), #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.alb-pnh-frame::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--alb-navy); border-radius: 50% 50% 3px 3px / 119px 119px 3px 3px; pointer-events: none; }
.alb-pnh-crown { position: absolute; top: 20px; left: 50%; width: 38px; height: auto; margin-left: -19px; color: var(--alb-gilt); }
.alb .alb-pnh-he { font-family: "Frank Ruhl Libre", "David", serif; font-weight: 700; font-size: 1.3em; line-height: 1.2; color: var(--alb-gilt-ink); direction: rtl; unicode-bidi: isolate; }
.alb .alb-pnh-en { font-family: "Assistant", "Segoe UI", Arial, sans-serif; font-weight: 600; font-size: .78em; letter-spacing: .06em; color: var(--alb-muted); }
.alb .alb-pnh-en::after { content: ""; display: block; width: 56px; height: 3px; margin: 8px auto 14px; background: var(--alb-gold); }
.alb-pnh-names li { display: flex; flex-direction: column; align-items: center; }
.alb-pnh-names li + li { margin-top: 12px; }
.alb-pnh-names li + li::before { content: ""; width: 7px; height: 7px; margin-bottom: 12px; background: var(--alb-gilt); transform: rotate(45deg); }
.alb-pnh-name { font-family: "Frank Ruhl Libre", Georgia, serif; font-weight: 700; font-size: 1.75em; line-height: 1.15; color: var(--alb-navy); text-wrap: balance; }
.alb-pnh-ded { font-style: italic; font-size: .92em; color: var(--alb-muted); margin-top: 3px; text-wrap: balance; }
.alb-print .alb-pnh { max-width: 4.8in; margin-bottom: 16px; }
.alb-pnh.alb-pnh-canva, .alb-print .alb-pnh.alb-pnh-canva, .alb-pnh.alb-pnh-img, .alb-print .alb-pnh.alb-pnh-img { max-width: none; }
.alb-pnh-img img { display: block; width: 100%; height: auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.alb-canva { position: relative; width: 100%; height: 0; overflow: hidden; }
.alb-canva iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) {
  .alb-pnh-frame { padding: 52px 18px 20px; border-radius: 50% 50% 6px 6px / 96px 96px 6px 6px; }
  .alb-pnh-frame::before { border-radius: 50% 50% 3px 3px / 91px 91px 3px 3px; }
  .alb-pnh-name { font-size: 1.5em; }
}
.alb-pn-invite { color: var(--alb-muted); font-size: .88em; font-style: italic; margin-top: 4px !important; }

.alb-sec.alb-wide .alb-ann { break-inside: avoid; }
.alb-wide { columns: 2; column-gap: 36px; }
.alb-wide h3 { column-span: all; }
.alb .alb-ann h4 { font-size: 1em; font-weight: 700; }
.alb-ann { margin-bottom: 10px; }

.alb-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--alb-rule); color: var(--alb-muted); font-size: .85em; text-align: center; }

/* Flyers below the bulletin */
.alb-flyers { margin-top: 18px; display: grid; gap: 16px; }
.alb-flyer img { display: block; width: 100%; max-width: 700px; height: auto; margin: 0 auto; border: 1px solid var(--alb-rule); }

/* Week navigation on the website */
.alb-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; max-width: 860px; margin: 0 auto 16px; font-size: 15px; }
.alb-nav a { color: var(--alb-blue); text-decoration: none; }
.alb-nav a:hover, .alb-nav a:focus-visible { text-decoration: underline; }
.alb-nav .alb-print-btn { background: var(--alb-blue); color: #fff; padding: 8px 16px; border-radius: 4px; font-weight: 600; }
.alb-nav .alb-print-btn:hover, .alb-nav .alb-print-btn:focus-visible { background: #173c6c; text-decoration: none; }

@media (max-width: 640px) {
  .alb { font-size: 16px; }
  .alb-cols, .alb-wide { column-count: 1; columns: 1; }
  .alb-head { flex-direction: column; align-items: stretch; }
  .alb-head-he { align-items: flex-end; }
  .alb .alb-head h2 { font-size: 1.9em; }
  .alb-g-t { font-size: 1.4em; }
  .alb-nav { font-size: 14px; }
}

/* Standalone print page */
.alb-print-body { margin: 0; background: #e9edf2; font-family: "Assistant", Arial, sans-serif; }
.alb-toolbar { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 12px; color: #333; font-size: 14px; }
.alb-toolbar button { background: #1f4e8c; color: #fff; border: 0; border-radius: 4px; padding: 9px 18px; font: 600 15px "Assistant", Arial, sans-serif; cursor: pointer; }
.alb-print { width: 8.5in; min-height: 11in; padding: .5in; margin: 0 auto 24px; font-size: 13px; box-shadow: 0 1px 6px rgba(0,0,0,.15); }
.alb-print .alb-cols { column-gap: 28px; }

@page { size: letter; margin: .45in; }
@media print {
  .alb-print-body { background: #fff; }
  .alb-toolbar, .alb-nav { display: none !important; }
  .alb-print { width: auto; min-height: 0; padding: 0; margin: 0; box-shadow: none; font-size: 11.5px; }
  /* Keep the letter layout even when a phone prints with its own narrow width */
  .alb.alb-print { font-size: 11.5px; }
  .alb-print .alb-cols, .alb-print .alb-wide { column-count: 2; columns: 2; }
  .alb-print .alb-head { flex-direction: row; align-items: flex-end; }
  .alb-print .alb-mast { grid-template-columns: 96px 1fr; gap: 18px; }
  .alb-print .alb-mast-logo { width: 96px; }
  .alb-print .alb-mast-bottom { font-size: .8em; }
  .alb-print .alb-rabbis { grid-template-columns: repeat(3, 1fr); }
  .alb-glance { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .alb a { color: inherit; text-decoration: none; }
  .alb-flyer { break-before: page; }
  .alb-flyer img { max-width: 100%; max-height: 9.8in; width: auto; border: 0; }
}
